Accumulated statistics collector. More...
#include <senf/Utils/Statistics.hh>
Public Member Functions | |
virtual unsigned | rank () const |
Return collectors rank value. More... | |
StatisticsBase::OutputProxy< Collector > | output (unsigned n=1u) |
bool | updated () const |
Public Member Functions inherited from senf::StatisticsBase | |
StatisticsData | data () const |
Get the Statistics data as senf::StatisticsData. More... | |
void | consoleList (unsigned level, std::ostream &os) const |
unsigned | cnt () const |
Last cnt value entered. More... | |
float | min () const |
Last min value entered. More... | |
float | avg () const |
Last avg value entered. More... | |
float | max () const |
Last max value entered. More... | |
float | dev () const |
Last dev value entered. More... | |
Collector & | operator[] (unsigned rank) |
Get child collector. More... | |
Collector const & | operator[] (unsigned rank) const |
Get child collector. More... | |
CollectorRange | collectors () |
List all child collectors. More... | |
const_CollectorRange | collectors () const |
List all child collectors. More... | |
Collector & | collect (unsigned rank) |
Register a new collector. More... | |
Statistics const & | base () const |
Statistics & | base () |
Get base statistics object. More... | |
std::string | path () const |
Get the path to this collector. More... | |
OutputProxy< StatisticsBase > | output (unsigned n=1u) |
Register output. More... | |
Additional Inherited Members | |
Public Types inherited from senf::StatisticsBase | |
typedef boost::iterator_range< ValueIterator > | CollectorRange |
typedef boost::iterator_range< const_ValueIterator > | const_CollectorRange |
Protected Member Functions inherited from senf::StatisticsBase | |
StatisticsBase () | |
virtual | ~StatisticsBase () |
void | enter (unsigned n, unsigned cnt, float min, float avg, float max, float dev) |
Accumulated statistics collector.
This class collects accumulated statistics. It is automatically created by senf::Statistics::collect()
Definition at line 512 of file Statistics.hh.
StatisticsBase::OutputProxy<Collector> senf::Collector::output | ( | unsigned | n = 1u | ) |
|
virtual |
Return collectors rank value.
Reimplemented from senf::StatisticsBase.
bool senf::Collector::updated | ( | ) | const |