Namespaces | Typedefs | Functions | Variables

perf.cpp File Reference

#include "perf.h"
#include <iostream>
#include <sys/time.h>
#include "threadsafe/threadsafe_map.h"
Include dependency graph for perf.cpp:

Go to the source code of this file.

Namespaces

namespace  perf

Typedefs

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

Functions

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

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

Variables

static bool perf::s_timersEnabled = true
static map_timer_t perf::s_timers