Classes | Typedefs | Functions | Variables

perf Namespace Reference

Classes

struct  time_t
 yes, my own time_t for convenience in the perf library More...
class  Timer
 Timer class -- just throw one of these on the stack with a unique name. More...
class  DebugTimer

Typedefs

typedef threadsafe_map
< std::string, timer_rec_t * > 
map_timer_t
typedef std::multimap< double,
std::string > 
map_time_name_t

Functions

static void * initializeTimer (IN const char *name)
static void updateTimer (IN void *context, IN const time_t &delta) throw ()

time_t getNow (void) throw ()
 return time_t object containing current time
void enableTimers (IN bool enabled) throw ()
 you can disable the timing system it is better to remove verbose timers, however!
void getTimingSummary (OUT std::string &)
 return a string containing (human-readable) formatted timing information
void dumpTimingSummary (IO std::ostream &)
 dumps timing summary to the given stream

Variables

static bool s_timersEnabled = true
static map_timer_t s_timers

Typedef Documentation

typedef threadsafe_map<std::string, timer_rec_t *> perf::map_timer_t

Definition at line 59 of file perf.cpp.

typedef std::multimap<double, std::string> perf::map_time_name_t

Definition at line 61 of file perf.cpp.


Function Documentation

static void* perf::initializeTimer ( IN const char *  name  )  [static]

Definition at line 77 of file perf.cpp.

static void perf::updateTimer ( IN void *  context,
IN const time_t &  delta 
) throw () [static]

Definition at line 102 of file perf.cpp.


Variable Documentation

bool perf::s_timersEnabled = true [static]

Definition at line 64 of file perf.cpp.

Definition at line 66 of file perf.cpp.