Struct historian::Histo
[−]
[src]
pub struct Histo { /* fields omitted */ }
A histogram collector that uses zero-configuration logarithmic buckets.
Methods
impl Histo
[src]
fn measure<T: Into<f64>>(&self, value: T) -> usize
[src]
Record a value.
fn percentile(&self, p: f64) -> f64
[src]
Retrieve a percentile [0-100]. Returns NAN if no metrics have been collected yet.
fn print_percentiles(&self)
[src]
Dump out some common percentiles.