#include <measure.h>
Inheritance diagram for Metrics:
Public Member Functions | |
Metrics () | |
Create an empty Metrics object. | |
~Metrics () | |
Do nothing. | |
void | addSample (std::string m, sample_t x, unsigned int id) |
Add a sample to an averaged measure. | |
void | addSample (std::string m, sample_t x, unsigned int id, unsigned int bin) |
Add a sample to a distribution measure. | |
void | setBinSize (std::string m, sample_t binSize) |
Set the bin size of a distribution measure. | |
void | setDistLower (std::string m, sample_t distLower) |
Set the lower bound of a distribution measure. | |
std::map< std::string, AvgMeasure > & | getAvgMeasures () |
Return the set of average measures. | |
std::map< std::string, DstMeasure > & | getDstMeasures () |
Return the set of distribution measures. | |
void | dump (std::ostream &os) |
Debug function to dump the content of the Metrics object into a stream. | |
Private Attributes | |
std::map< std::string, AvgMeasure > | avgMeasures |
std::map< std::string, DstMeasure > | dstMeasures |