Profiler Class Reference
[Classes for basic data types and vectors/arrays (tjutils library)]

#include <tjprofiler.h>

Inheritance diagram for Profiler:

Inheritance graph
[legend]

List of all members.

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

static void Profiler::reset (  )  [static]

Resets the time counters.

static void Profiler::dump_final_result (  )  [static]

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

static STD_string Profiler::get_memory_usage (  )  [static]

Returns the current memory usage as a readable string.


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

Generated on Wed Sep 30 15:33:09 2009 by  doxygen 1.5.6