![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Types | |
typedef std::function< void(std::string, double)> | LogCallback |
Public Member Functions | |
ProcessStats (bool doLoadAverage=false) | |
void | sample () |
uint64_t | totalFaults () const |
double | totalTime () const |
uint64_t | totalContextSwitches () const |
Static Public Member Functions | |
static void | logToCallback (LogCallback cb, const ProcessStats &lastStats, const ProcessStats &curStats, const std::string &prefix="") |
static Json::Value | toJson (const ProcessStats &lastStats, const ProcessStats &curStats, const std::string &prefix="") |
Public Attributes | |
uint64_t | majorFaults |
uint64_t | minorFaults |
double | userTime |
double | systemTime |
uint64_t | virtualMem |
uint64_t | residentMem |
uint64_t | sharedMem |
bool | doLoadAverage |
float | loadAverage1 |
float | loadAverage5 |
float | loadAverage15 |
uint64_t | voluntaryContextSwitches |
uint64_t | involuntaryContextSwitches |
Definition at line 25 of file process_stats.h.