#include "perf.h"
#include <iostream>
#include <sys/time.h>
#include "threadsafe/threadsafe_map.h"
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 (IN const char *name) |
static void | perf::updateTimer (IN void *context, IN const time_t &delta) throw () |
time_t | perf::getNow (void) throw () |
return time_t object containing current time | |
void | perf::enableTimers (IN bool enabled) throw () |
you can disable the timing system it is better to remove verbose timers, however! | |
void | perf::getTimingSummary (OUT std::string &) |
return a string containing (human-readable) formatted timing information | |
void | perf::dumpTimingSummary (IO std::ostream &) |
dumps timing summary to the given stream | |
Variables | |
static bool | perf::s_timersEnabled = true |
static map_timer_t | perf::s_timers |