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 47 of file MaxMetric.hpp.
|
inline |
Definition at line 61 of file MaxMetric.hpp.
|
inline |
Definition at line 103 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 88 of file MaxMetric.hpp.
|
inline |
Definition at line 95 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 72 of file MaxMetric.hpp.
|
virtual |
Definition at line 34 of file MaxMetricImpl.hpp.
|
inline |
Definition at line 101 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 77 of file MaxMetric.hpp.
|
inlinevirtual |
Definition at line 81 of file MaxMetric.hpp.
|
inline |
Get the current value.
Definition at line 98 of file MaxMetric.hpp.
|
protected |
Definition at line 49 of file MaxMetric.hpp.
|
protected |
Definition at line 50 of file MaxMetric.hpp.