Skip to main content

Module histogram

Module histogram 

Source
Expand description

Log2-spaced CDF buckets. Behind the histogram Cargo feature (on by default).

Use to export a full empirical distribution alongside the headline p50/p99 percentiles - downstream tooling can reconstruct any quantile from the bucket cumulative sums without needing the raw sample stream.

Functionsยง

cdf_buckets
Log2-spaced histogram of latencies. 64 buckets covering [2^i, 2^(i+1)) nanoseconds for i in 0..64. A full empirical CDF can be reconstructed from the cumulative sum of this array. Empty input -> all-zero buckets.