Expand description
Statistics utilities.
Structs§
- Sliding
MinMax - Keeps track of the minimum and maximum value over a fixed-size sliding window of samples.
Constants§
- HISTOGRAM_
BYTE_ BUCKETS - Buckets that capture sizes of 64 bytes up to a gigabyte
- HISTOGRAM_
MILLISECOND_ 🔒BUCKETS - A standard range of buckets for timing data, measured in seconds.
Individual histograms may only need a subset of this range, in which case,
see
histogram_seconds_buckets
below. - HISTOGRAM_
SECOND_ 🔒BUCKETS - A standard range of buckets for timing data, measured in seconds.
Individual histograms may only need a subset of this range, in which case,
see
histogram_seconds_buckets
below.
Functions§
- histogram_
milliseconds_ buckets - Returns a
Vec
of time buckets that are both present in our standard buckets above and within the provided inclusive range. (This makes it more meaningful to compare latency percentiles across histograms if needed, without requiring all metrics to use exactly the same buckets.) - histogram_
seconds_ buckets - Returns a
Vec
of time buckets that are both present in our standard buckets above and within the provided inclusive range. (This makes it more meaningful to compare latency percentiles across histograms if needed, without requiring all metrics to use exactly the same buckets.) - po_max 🔒
- Like
std::cmp::max
, but works withPartialOrd
values. - po_min 🔒
- Like
std::cmp::min
, but works withPartialOrd
values.