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.
- Pruning
Metrics - Counters tracking pruning metrics
- Ratio
Metrics - Counters tracking ratio metrics (e.g. matched vs total)
- Scoped
Timer Guard - RAAI structure that adds all time between its construction and
destruction to the CPU time or the first call to
stopwhichever 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§
- Metric
Value - Possible values for a super::Metric.
Functions§
- fmt_
significant 🔒 - Format a float number with
digitsmost significant numbers.