Static Public Member Functions | List of all members

#include <tjprofiler.h>

Inheritance diagram for Profiler:
Inheritance graph

Static Public Member Functions

static void reset ()
static void dump_final_result ()
static STD_string get_memory_usage ()

Detailed Description

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.

Definition at line 41 of file tjprofiler.h.

Member Function Documentation

§ dump_final_result()

static void Profiler::dump_final_result ( )

Dumps the results to the current log and resets the time counters.

§ get_memory_usage()

static STD_string Profiler::get_memory_usage ( )

Returns the current memory usage as a readable string.

§ reset()

static void Profiler::reset ( )

Resets the time counters.

The documentation for this class was generated from the following file: