#include <stats.h>
Public Member Functions | |
stats () | |
void | zero (void) |
Clear all accumulators. | |
void | add (double val, op_t op) |
Add this value to this accumulator. | |
double | get (op_t op) const |
Look up the value in this accumulator. | |
void | set (double val, op_t op) |
void | add (const stats &s, double scale=1.0) |
Add everything in this object, scaled by scale, to us. | |
void | print (FILE *f, const char *what, double scale=1.0, double thresh=0.001) const |
Print these stats, scaled by scale, where they exceed threshold. | |
Data Fields | |
double | t [op_max] |
Accumulators for each op_t:. |
Definition at line 53 of file stats.h.
stats::stats::stats | ( | ) | [inline] |
void stats::stats::zero | ( | void | ) | [inline] |
Clear all accumulators.
Definition at line 61 of file stats.h.
References op, stats::op_len, and t.
Referenced by stats(), and LV3D_PerfManager::zero().
void stats::stats::add | ( | double | val, | |
op_t | op | |||
) | [inline] |
Add this value to this accumulator.
Definition at line 65 of file stats.h.
Referenced by LV3D0_Deposit(), and LV3D_PerfManager::zero().
double stats::stats::get | ( | op_t | op | ) | const [inline] |
Look up the value in this accumulator.
Definition at line 68 of file stats.h.
Referenced by printStats().
void stats::stats::set | ( | double | val, | |
op_t | op | |||
) | [inline] |
Definition at line 69 of file stats.h.
Referenced by LV3D_PerfManager::collect().
void stats::stats::add | ( | const stats & | s, | |
double | scale = 1.0 | |||
) | [inline] |
void stats::stats::print | ( | FILE * | f, | |
const char * | what, | |||
double | scale = 1.0 , |
|||
double | thresh = 0.001 | |||
) | const |
Print these stats, scaled by scale, where they exceed threshold.
Referenced by printStats().
double stats::stats::t[op_max] |