Module value

Module value 

Source
Expand description

Value representation of metrics

Structs§

Count
A counter to record things such as number of input or output rows
Gauge
A gauge is the simplest metrics type. It just returns a value. For example, you can easily expose current memory consumption with a gauge.
PruningMetrics
Counters tracking pruning metrics
RatioMetrics
Counters tracking ratio metrics (e.g. matched vs total)
ScopedTimerGuard
RAAI structure that adds all time between its construction and destruction to the CPU time or the first call to stop whichever comes first
Time
Measure a potentially non contiguous duration of time
Timestamp
Stores a single timestamp, stored as the number of nanoseconds elapsed from Jan 1, 1970 UTC

Enums§

MetricValue
Possible values for a super::Metric.

Functions§

fmt_significant 🔒
Format a float number with digits most significant numbers.