supereight
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
se::PerfStats::Stats Struct Reference

#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.
 

Member Function Documentation

◆ meanIter() [1/2]

static double se::PerfStats::Stats::meanIter ( const std::vector< double > &  iter_data_vec)
static

Static functions to summarise data of one iteration.

Compute the mean value of the stats data of an iteration.

Parameters
[in]iter_data_vecThe vector containing all values to be processed.
Returns
The mean of the values in the iter_data_vec.

◆ lastIter() [1/2]

static double se::PerfStats::Stats::lastIter ( const std::vector< double > &  iter_data_vec)
static

Provide the last value of the stats data of an iteration.

Parameters
[in]iter_data_vecThe vector containing all values to be processed.
Returns
The last value in the iter_data_vec.

◆ minIter() [1/2]

static double se::PerfStats::Stats::minIter ( const std::vector< double > &  iter_data_vec)
static

Compute the minimum value of the stats data of an iteration.

Parameters
[in]iter_data_vecThe vector containing all values to be processed.
Returns
The minimum value of the values in the iter_data_vec.

◆ maxIter() [1/2]

static double se::PerfStats::Stats::maxIter ( const std::vector< double > &  iter_data_vec)
static

Compute the maximum value of the stats data of an iteration.

Parameters
[in]iter_data_vecThe vector containing all values to be processed.
Returns
The maximum value of the values in the iter_data_vec.

◆ sumIter() [1/2]

static double se::PerfStats::Stats::sumIter ( const std::vector< double > &  iter_data_vec)
static

Compute the sum of the values of the stats data of an iteration.

Parameters
[in]iter_data_vecThe vector containing all values to be processed.
Returns
The sum of the values in the iter_data_vec.

◆ mergeIter() [1/2]

static double se::PerfStats::Stats::mergeIter ( const std::vector< double > &  iter_data_vec,
const Type  type 
)
static

Merge the stats data of one interation into a scalar value.

The merging strategy depends on the PerfStats::Type.

Parameters
[in]iter_data_vecThe vector containing all values to be processed.
Returns
The merged scalar value of the values in the iter_data_vec.

◆ meanIter() [2/2]

double se::PerfStats::Stats::meanIter ( const size_t  iter)

Functions to summarise data of one iteration.

Compute the mean value of the stats data of a given iteration.

Parameters
[in]iterThe iteration to processed.
Returns
The mean of the values of the given iteration.

◆ lastIter() [2/2]

double se::PerfStats::Stats::lastIter ( const size_t  iter)

Provide the last value of the stats data of a given iteration.

Parameters
[in]iterThe iteration to processed.
Returns
The last value of the given iteration.

◆ minIter() [2/2]

double se::PerfStats::Stats::minIter ( const size_t  iter)

Compute the minimum value of the stats data of a given iteration.

Parameters
[in]iterThe iteration to processed.
Returns
The minimum value of the given iteration.

◆ maxIter() [2/2]

double se::PerfStats::Stats::maxIter ( const size_t  iter)

Compute the maximum value of the stats data of a given iteration.

Parameters
[in]iterThe iteration to processed.
Returns
The maximum value of the given iteration.

◆ sumIter() [2/2]

double se::PerfStats::Stats::sumIter ( const size_t  iter)

Compute the sum value of the stats data of a given iteration.

Parameters
[in]iterThe iteration to processed.
Returns
The sum of the values of the given iteration.

◆ mergeIter() [2/2]

double se::PerfStats::Stats::mergeIter ( const size_t  iter)

Merge the stats data a given interation into a scalar value.

The merging strategy depends on the PerfStats::Type.

Parameters
[in]iterThe iteration to processed.
Returns
The merged scalar value of the values of the given iteration.

◆ mean()

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.

Returns
The mean of all stats data

◆ last()

double se::PerfStats::Stats::last ( ) const

Provide the last stored value to the stats data.

Returns
The last value of the stats data

◆ min()

double se::PerfStats::Stats::min ( ) const

Compute the minimum value of all stats data stored so far.

Returns
The minimum value of all stats data.

◆ max()

double se::PerfStats::Stats::max ( ) const

Compute the maximum value of all stats data stored so far.

Returns
The maximum value of all stats data.

◆ sum()

double se::PerfStats::Stats::sum ( ) const

Compute the sum of all stats data stored so far.

Returns
The sum of all stats data.

◆ merge()

double se::PerfStats::Stats::merge ( ) const

Merge all stats data into a scalar value.

The merging strategy depends on the PerfStats::Type.

Returns
The merged scalar value of all stats data.

◆ unitString()

std::string se::PerfStats::Stats::unitString ( )
Returns
The unit of the stats type as a std::string, e.g. "[V]" for PerfStats::Voltage.

Member Data Documentation

◆ data_

std::map<size_t, std::vector<double> > se::PerfStats::Stats::data_

◆ last_absolute_

double se::PerfStats::Stats::last_absolute_

The last absolute time the stat data was updated.

◆ mutex_

std::mutex se::PerfStats::Stats::mutex_

◆ type_

Type se::PerfStats::Stats::type_

The type of data stored in the stat struct.


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