ckb_metrics

Module local

Source
Expand description

Unsync local metrics, provides better performance.

Structs§

AFLocalCounter
Auto flush-able local counter
AFLocalHistogram
Auto flush-able local counter
LocalHistogram
An unsync Histogram.
LocalHistogramTimer
An unsync HistogramTimer.
LocalHistogramVec
An unsync HistogramVec.

Traits§

CounterDelegator
Delegator for auto flush-able local counter
CounterWithValueType
For auto_flush::AFLocalCounter to use to make type inference possible
HistogramDelegator
Delegator for auto flush-able local counter
LocalMetric
An interface models a Metric only usable in single thread environment.
MayFlush
An interface models a LocalMetric with try to flush functions. Not intend to be implemented by user manually, used in macro generated code.

Type Aliases§

LocalCounter
An unsync Counter.
LocalCounterVec
An unsync CounterVec.
LocalIntCounter
The integer version of LocalCounter. Provides better performance are all positive integers (natural numbers).
LocalIntCounterVec
The integer version of LocalCounterVec. Provides better performance if metric values are all positive integers (natural numbers).