#include <senf/Utils/Statistics.hh>
This class collects accumulated statistics. It is automatically created by senf::Statistics::collect()
Definition at line 500 of file Statistics.hh.
Public Member Functions |
|
virtual unsigned | rank () const |
Return collectors rank value. |
|
StatisticsBase::OutputProxy < Collector > |
output (unsigned n=1u) |
Register output. |
senf::StatisticsBase::OutputProxy< senf::Collector > senf::Collector:: | ||||
output | ( | unsigned |
n = 1u
|
) |
Register output.
This call will request the collector to output statistics build by averaging the last n values. This output is generated for every new value in the collector. The output signal can be connected to an arbitrary target using the returned proxy. Example:
stats.output(4u).connect( senf::StatisticsLogger());
[in] | n | size of sliding average window |
Reimplemented from senf::StatisticsBase.
Definition at line 155 of file Statistics.cci.
unsigned senf::Collector:: | ||||
rank | () | |||
Return collectors rank value.
Reimplemented from senf::StatisticsBase.
Definition at line 148 of file Statistics.cci.