Metric that simply keeps track of a single value over time. More...
#include <MaxMetric.hpp>
Public Member Functions | |
MaxMetric (const char *name, T initial_value, bool reg_new=true) | |
virtual std::ostream & | json (std::ostream &o) const |
virtual void | reset () |
virtual void | sample () |
virtual MaxMetric< T > * | clone () const |
virtual void | merge_all (impl::MetricBase *static_stat_ptr) |
const MaxMetric< T > & | count () |
T | value () const |
Get the current value. More... | |
operator T () const | |
void | add (T value) |
Protected Attributes | |
T | initial_value |
T | value_ |
Metric that simply keeps track of a single value over time.
Typically used as a counter, but can also be used for sampling an instantaneous value.
Definition at line 58 of file MaxMetric.hpp.
|
inline |
Definition at line 72 of file MaxMetric.hpp.
|
inline |
Definition at line 114 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 99 of file MaxMetric.hpp.
|
inline |
Definition at line 106 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 83 of file MaxMetric.hpp.
|
virtual |
Definition at line 45 of file MaxMetricImpl.hpp.
|
inline |
Definition at line 112 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 88 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 92 of file MaxMetric.hpp.
|
inline |
Get the current value.
Definition at line 109 of file MaxMetric.hpp.
|
protected |
Definition at line 60 of file MaxMetric.hpp.
|
protected |
Definition at line 61 of file MaxMetric.hpp.