|static void||reset ()|
|static void||dump_final_result ()|
|static STD_string||get_memory_usage ()|
A class to profile your program, i.e. to see how much time is spent in each function. Create a local object of this class in each function you want to analyze with the functions name as the constructors argument. The function name serves as a key to measure the execution time in each function if this function is called successively. the result of can be obtained by the 'dump_final_result()' function. In addition, a function is provided to retrieve the current memory usage.
|static void Profiler::dump_final_result||(||)||
Dumps the results to the current log and resets the time counters.
|static STD_string Profiler::get_memory_usage||(||)||
Returns the current memory usage as a readable string.
|static void Profiler::reset||(||)||
Resets the time counters.