Struct kant::Histo[][src]

pub struct Histo { /* fields omitted */ }

A histogram collector that uses zero-configuration logarithmic buckets.


impl Histo[src]

pub fn measure<T: Into<f64>>(&self, raw_value: T) -> usize[src]

Record a value.

pub fn percentile(&self, p: f64) -> f64[src]

Retrieve a percentile [0-100]. Returns NAN if no metrics have been collected yet.

pub fn print_percentiles(&self)[src]

Dump out some common percentiles.

pub fn sum(&self) -> usize[src]

Return the sum of all observations in this histogram.

pub fn count(&self) -> usize[src]

Return the count of observations in this histogram.

Trait Implementations

impl Debug for Histo[src]

impl Default for Histo[src]

impl Send for Histo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.