pub struct Histo { /* private fields */ }
Expand description
A histogram collector that uses zero-configuration logarithmic buckets.
Implementations§
Source§impl Histo
impl Histo
Sourcepub fn percentile(&self, p: f64) -> f64
pub fn percentile(&self, p: f64) -> f64
Retrieve a percentile [0-100]. Returns NAN if no metrics have been collected yet.
Sourcepub fn print_percentiles(&self)
pub fn print_percentiles(&self)
Dump out some common percentiles.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Histo
impl RefUnwindSafe for Histo
impl Sync for Histo
impl Unpin for Histo
impl UnwindSafe for Histo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more