KISSCPP
a C++ library for rapid application development
|
#include <statskeeper.hpp>
Public Member Functions | |
void | start () |
void | stop () |
~StatsKeeper () | |
void | setStatValue (std::string id, double value=0) |
void | increment (std::string id, double value=1) |
void | decrement (std::string id, double value=1) |
void | addStatableQueue (std::string id, sharedStatAbleQ ssq) |
SharedStatsMapType | getCurrentStats () |
SharedStatsMapType | getLastGatheredStats () |
SharedStatsHistoryMapType | getFullStatsHistory () |
Static Public Member Functions | |
static StatsKeeper * | instance (unsigned long int gp=300, unsigned long int hl=12) |
|
inline |
void kisscpp::StatsKeeper::addStatableQueue | ( | std::string | id, |
sharedStatAbleQ | ssq | ||
) |
void kisscpp::StatsKeeper::decrement | ( | std::string | id, |
double | value = 1 |
||
) |
SharedStatsMapType kisscpp::StatsKeeper::getCurrentStats | ( | ) |
SharedStatsHistoryMapType kisscpp::StatsKeeper::getFullStatsHistory | ( | ) |
SharedStatsMapType kisscpp::StatsKeeper::getLastGatheredStats | ( | ) |
void kisscpp::StatsKeeper::increment | ( | std::string | id, |
double | value = 1 |
||
) |
|
static |
void kisscpp::StatsKeeper::setStatValue | ( | std::string | id, |
double | value = 0 |
||
) |
void kisscpp::StatsKeeper::start | ( | ) |
void kisscpp::StatsKeeper::stop | ( | ) |