/ComAir

profiling program complexity in production runs

Primary LanguageC++

ComAir

Profiling C/C++ program complexity in production runs.

1. Prepare Your Runtime Env

2. How To Use ComAir

There are some examples scripts in stubs fold. Take stubs/apache34464 as an example.

  • You should change the local env variables in run_apache34464.sh.

  • If you want to run sampling of profiling, you should set sampling="1" in $ sh run_apache34464.sh. Or you can run $ sh run_apache34464.sh directly. The script will generate two files. One is xxx_func_name_id.txt, and the other is aprof_logger.txt. The first file is using to map function name to its' id. The second file saves all runtime log info. The py script in same fold can parse the log.

  • Active your python virtual env, run $ python run_apache34464.py. This script will automatically fit the function curve.