![]() |
Peano
|
One data set for one type (identifier) of statistics. More...
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 |
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.
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.
tarch::logging::Statistics::DataSet::DataSet | ( | double | time | ) |
Definition at line 37 of file Statistics.cpp.
References _data.
void tarch::logging::Statistics::DataSet::createNewSnapshot | ( | double | t, |
bool | clearAfterDatabaseDump ) |
Definition at line 56 of file Statistics.cpp.
std::string tarch::logging::Statistics::DataSet::toString | ( | ) | const |
Definition at line 44 of file Statistics.cpp.
int tarch::logging::Statistics::DataSet::_counter |
Definition at line 173 of file Statistics.h.
std::vector< std::tuple<double,double,double,double,int> > tarch::logging::Statistics::DataSet::_data |
Definition at line 174 of file Statistics.h.
Referenced by peano4.datamodel.DaStGen2.DaStGen2Generator::construct_output(), peano4.toolbox.particles.ParticleSet.ParticleSetGenerator_ScatteredOnHeap_IndexByList::construct_output(), peano4.toolbox.particles.ParticleSet.ParticleSetGenerator_ScatteredOnHeap_IndexByVector::construct_output(), peano4.toolbox.particles.ParticleSet.ParticleSetGenerator_ContinuousPerVertex::construct_output(), peano4.toolbox.particles.ParticleSet.ParticleSetGenerator_GlobalContinuous::construct_output(), DataSet(), peano4.datamodel.DaStGen2.DaStGen2Generator::get_header_file_include(), peano4.toolbox.particles.ParticleSet.AbstractParticleSetGenerator::get_header_file_include(), peano4.datamodel.DaStGen2.DaStGen2Generator::get_stack_container(), peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector::get_stack_container(), and peano4.toolbox.particles.ParticleSet.AbstractParticleSetGenerator::get_stack_container().
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.