template<typename T, typename U>
vt::runtime::component::meter::CounterGauge struct

Combination of a counter/gauge for measuring and counting some event together that takes place over time.

Base classes

struct DiagnosticMeter

Constructors, destructors, conversion operators

CounterGauge() defaulted
Default constructor available for ease of putting this type in a class. But, all valid ways to construction involve the factory methods in the Diagnostic base class for component.
CounterGauge(Counter<T> in_counter, Gauge<U> in_gauge)
Constructor to create a new CounterGauge combo. Should be created by registering a new diagnostics to obtain a counter and gauge.

Public functions

void incrementUpdate(U in, T num = 1)
Increment counter and update gauge value.

Function documentation

template<typename T, typename U>
vt::runtime::component::meter::CounterGauge<T, U>::CounterGauge(Counter<T> in_counter, Gauge<U> in_gauge)

Constructor to create a new CounterGauge combo. Should be created by registering a new diagnostics to obtain a counter and gauge.

Parameters
in_counter in the underlying counter
in_gauge in the underlying gauge

template<typename T, typename U>
void vt::runtime::component::meter::CounterGauge<T, U>::incrementUpdate(U in, T num = 1)

Increment counter and update gauge value.

Parameters
in in the new gauge value
num in number of times to increment the counter