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.
fn sum(&self) -> usize[src]
Return the sum of all observations in this histogram.
fn count(&self) -> usize[src]
Return the count of observations in this histogram.