biosustain / OpenMS

The codebase of the OpenMS project
https://www.openms.de
Other
0 stars 1 forks source link

Code Performance Profiling #158

Open dmccloskey opened 6 years ago

dmccloskey commented 6 years ago

Description

A manual of best practices for code profiling using existing tooling

Objectives

pcolaianni commented 6 years ago

OProfile: http://oprofile.sourceforge.net/news/

pcolaianni commented 6 years ago

valgrind --tool=callgrind ./(Your binary)

pcolaianni commented 6 years ago

gcov provides line-by-line profiling information.

Requirements

gcov and lcov (the latter is a frontend, to generate human readable reports)

How to

Pass the following -D options to Cmake: -DCMAKE_BUILD_TYPE=DEBUG -DOPENMS_COVERAGE=ON Then:

make all
ctest -R the_test_you_want_to_profile
make OpenMS_coverage