MPQC
3.0.0-alpha
|
Profile module is a set of macros to measure time spent in a particular scope on the fly. To use it, first compile the code with MPQC_PROFILE_ENABLE defined. Register the thread before you start profiling by putting somewhere in the beginning
Insert MPQC_PROFILE_LINE in the scope of the code you want profiled, eg
Dump (and reset/clear) profiling data with MPQC_PROFILE_DUMP(cout), eg:
The output will be grouped by thread id and will contain file:line keys followed by total time spent in the scope and the number of time the scope was entered.