FreePOOMA
2.4.1
|
Statistics keeps statistics about a given POOMA job, and can report on a summary of these statistics when asked. More...
#include <Statistics.h>
Public Member Functions | |
Statistics () | |
~Statistics () | |
void | print (Inform &, long(*filter)(long)=defaultFilter) |
StatisticsData * | add (const char *description, long initval=0) |
Statistics keeps statistics about a given POOMA job, and can report on a summary of these statistics when asked.
This interface is extensible ... you can add new types of statistics by calling 'add(description, initval)' with a string description of the stat, and the initial value it should have.
The StatisticsData class is a helper that contains the description and data.
void Pooma::Statistics::print | ( | Inform & | , |
long(*)(long) | filter = defaultFilter |
||
) |
StatisticsData* Pooma::Statistics::add | ( | const char * | description, |
long | initval = 0 |
||
) | [inline] |