supereight
|
#include <perfstats.hpp>
Public Member Functions | |
double | meanIter (const size_t iter) |
Functions to summarise data of one iteration. | |
double | lastIter (const size_t iter) |
Provide the last value of the stats data of a given iteration. | |
double | minIter (const size_t iter) |
Compute the minimum value of the stats data of a given iteration. | |
double | maxIter (const size_t iter) |
Compute the maximum value of the stats data of a given iteration. | |
double | sumIter (const size_t iter) |
Compute the sum value of the stats data of a given iteration. | |
double | mergeIter (const size_t iter) |
Merge the stats data a given interation into a scalar value. | |
double | mean () const |
Functions to summarise data of the entire stats. | |
double | last () const |
Provide the last stored value to the stats data. | |
double | min () const |
Compute the minimum value of all stats data stored so far. | |
double | max () const |
Compute the maximum value of all stats data stored so far. | |
double | sum () const |
Compute the sum of all stats data stored so far. | |
double | merge () const |
Merge all stats data into a scalar value. | |
std::string | unitString () |
Static Public Member Functions | |
static double | meanIter (const std::vector< double > &iter_data_vec) |
Static functions to summarise data of one iteration. | |
static double | lastIter (const std::vector< double > &iter_data_vec) |
Provide the last value of the stats data of an iteration. | |
static double | minIter (const std::vector< double > &iter_data_vec) |
Compute the minimum value of the stats data of an iteration. | |
static double | maxIter (const std::vector< double > &iter_data_vec) |
Compute the maximum value of the stats data of an iteration. | |
static double | sumIter (const std::vector< double > &iter_data_vec) |
Compute the sum of the values of the stats data of an iteration. | |
static double | mergeIter (const std::vector< double > &iter_data_vec, const Type type) |
Merge the stats data of one interation into a scalar value. | |
Public Attributes | |
std::map< size_t, std::vector< double > > | data_ |
double | last_absolute_ |
The last absolute time the stat data was updated. | |
std::mutex | mutex_ |
Type | type_ |
The type of data stored in the stat struct. | |
Static functions to summarise data of one iteration.
Compute the mean value of the stats data of an iteration.
[in] | iter_data_vec | The vector containing all values to be processed. |
Provide the last value of the stats data of an iteration.
[in] | iter_data_vec | The vector containing all values to be processed. |
Compute the minimum value of the stats data of an iteration.
[in] | iter_data_vec | The vector containing all values to be processed. |
Compute the maximum value of the stats data of an iteration.
[in] | iter_data_vec | The vector containing all values to be processed. |
Compute the sum of the values of the stats data of an iteration.
[in] | iter_data_vec | The vector containing all values to be processed. |
|
static |
Merge the stats data of one interation into a scalar value.
The merging strategy depends on the PerfStats::Type.
[in] | iter_data_vec | The vector containing all values to be processed. |
Functions to summarise data of one iteration.
Compute the mean value of the stats data of a given iteration.
[in] | iter | The iteration to processed. |
Provide the last value of the stats data of a given iteration.
[in] | iter | The iteration to processed. |
Compute the minimum value of the stats data of a given iteration.
[in] | iter | The iteration to processed. |
Compute the maximum value of the stats data of a given iteration.
[in] | iter | The iteration to processed. |
Compute the sum value of the stats data of a given iteration.
[in] | iter | The iteration to processed. |
Merge the stats data a given interation into a scalar value.
The merging strategy depends on the PerfStats::Type.
[in] | iter | The iteration to processed. |
double se::PerfStats::Stats::mean | ( | ) | const |
Functions to summarise data of the entire stats.
Compute the mean value of all stats data stored so far.
double se::PerfStats::Stats::last | ( | ) | const |
Provide the last stored value to the stats data.
double se::PerfStats::Stats::min | ( | ) | const |
Compute the minimum value of all stats data stored so far.
double se::PerfStats::Stats::max | ( | ) | const |
Compute the maximum value of all stats data stored so far.
double se::PerfStats::Stats::sum | ( | ) | const |
Compute the sum of all stats data stored so far.
double se::PerfStats::Stats::merge | ( | ) | const |
Merge all stats data into a scalar value.
The merging strategy depends on the PerfStats::Type.
std::string se::PerfStats::Stats::unitString | ( | ) |
double se::PerfStats::Stats::last_absolute_ |
The last absolute time the stat data was updated.
std::mutex se::PerfStats::Stats::mutex_ |
Type se::PerfStats::Stats::type_ |
The type of data stored in the stat struct.