pub struct METRICS_SIZE_HISTOGRAM { /* private fields */ }
Methods from Deref<Target = Histogram>§
sourcepub fn start_timer(&self) -> HistogramTimer
pub fn start_timer(&self) -> HistogramTimer
Return a HistogramTimer
to track a duration.
sourcepub fn observe_closure_duration<F, T>(&self, f: F) -> Twhere
F: FnOnce() -> T,
pub fn observe_closure_duration<F, T>(&self, f: F) -> Twhere
F: FnOnce() -> T,
Observe execution time of a closure, in second.
sourcepub fn local(&self) -> LocalHistogram
pub fn local(&self) -> LocalHistogram
Return a LocalHistogram
for single thread usage.
sourcepub fn get_sample_sum(&self) -> f64
pub fn get_sample_sum(&self) -> f64
Return accumulated sum of all samples.
sourcepub fn get_sample_count(&self) -> u64
pub fn get_sample_count(&self) -> u64
Return count of all samples.
Trait Implementations§
source§impl Deref for METRICS_SIZE_HISTOGRAM
impl Deref for METRICS_SIZE_HISTOGRAM
impl LazyStatic for METRICS_SIZE_HISTOGRAM
Auto Trait Implementations§
impl Freeze for METRICS_SIZE_HISTOGRAM
impl RefUnwindSafe for METRICS_SIZE_HISTOGRAM
impl Send for METRICS_SIZE_HISTOGRAM
impl Sync for METRICS_SIZE_HISTOGRAM
impl Unpin for METRICS_SIZE_HISTOGRAM
impl UnwindSafe for METRICS_SIZE_HISTOGRAM
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