Skip to main content

08_histogram_stats/
08_histogram_stats.rs

1#[path = "support/mod.rs"]
2mod support;
3
4fn main() {
5    let histogram = support::sample_histogram();
6    println!(
7        "histogram buckets={} empty={} first_bucket_count={}",
8        histogram.total_bucket_count,
9        histogram.is_empty(),
10        histogram.buckets()[0].bucket_count
11    );
12}