MOOCHO (Single Doxygen Collection)
Version of the Day
|
Classes | |
class | ProfileHackPack::ProfileTiming |
Helper class that takes care of timing. More... | |
Functions | |
void | ProfileHackPack::set_time (const char func_name[], double time_secs) |
Set the name and time for a function or other section of code. More... | |
void | ProfileHackPack::print_timings (std::ostream &out) |
Print out the timing generated by calls to set_time(). More... | |
These are tools that allow a developer to get some profiling results without fancy profiling tools included with the compiler. These tools collect timings for an entire process and should work properly in a multi-threaded application. The only inteface element that a developer should be concerned with is the ProfileHackPack::ProfileTiming class.
void ProfileHackPack::set_time | ( | const char | func_name[], |
double | time_secs | ||
) |
Set the name and time for a function or other section of code.
This function can be called multiple times with the same func_name
in which case the number of function calls and total time for func_name
will be accumulated.
Definition at line 84 of file ProfileHackPack_profile_hack.cpp.
void ProfileHackPack::print_timings | ( | std::ostream & | out | ) |
Print out the timing generated by calls to set_time().
Definition at line 91 of file ProfileHackPack_profile_hack.cpp.