Peano
Loading...
Searching...
No Matches
tarch::logging::Statistics::DataSet Struct Reference

One data set for one type (identifier) of statistics. More...

Collaboration diagram for tarch::logging::Statistics::DataSet:

Public Member Functions

 DataSet ()
 As we hold data sets within a map, we need a default constructor.
 
 DataSet (double time)
 
void createNewSnapshot (double t, bool clearAfterDatabaseDump)
 
std::string toString () const
 

Data Fields

tarch::timing::Watch _watch
 Not used for time stamps but only for sampling.
 
int _counter
 
std::vector< std::tuple< double, double, double, double, int > > _data
 

Detailed Description

One data set for one type (identifier) of statistics.

The watch is used to track time (obviously) and the counter counts the number of hits. If you enable sampling, the counter can trigger writes, i.e. you can specify after how many hits you wanna dump data. The actual data is a five-tuple of time stamp, current value, minimal value over the tracked period and maximum value. The last entry holds the number of writes to the bucket.

Definition at line 168 of file Statistics.h.

Constructor & Destructor Documentation

◆ DataSet() [1/2]

tarch::logging::Statistics::DataSet::DataSet ( )

As we hold data sets within a map, we need a default constructor.

However, this one yields an invalid data set.

Definition at line 31 of file Statistics.cpp.

◆ DataSet() [2/2]

tarch::logging::Statistics::DataSet::DataSet ( double time)

Definition at line 37 of file Statistics.cpp.

References _data.

Member Function Documentation

◆ createNewSnapshot()

void tarch::logging::Statistics::DataSet::createNewSnapshot ( double t,
bool clearAfterDatabaseDump )

Definition at line 56 of file Statistics.cpp.

◆ toString()

std::string tarch::logging::Statistics::DataSet::toString ( ) const

Definition at line 44 of file Statistics.cpp.

Field Documentation

◆ _counter

int tarch::logging::Statistics::DataSet::_counter

Definition at line 173 of file Statistics.h.

◆ _data

◆ _watch

tarch::timing::Watch tarch::logging::Statistics::DataSet::_watch

Not used for time stamps but only for sampling.

Definition at line 172 of file Statistics.h.


The documentation for this struct was generated from the following files: