Struct diem_metrics::DurationHistogram
source · pub struct DurationHistogram { /* private fields */ }
Expand description
A small wrapper around Histogram to handle the special case of duration buckets. This Histogram will handle the correct granularity for logging time duration in a way that fits the used buckets.
Implementations§
source§impl DurationHistogram
impl DurationHistogram
pub fn new(histogram: Histogram) -> DurationHistogram
pub fn observe_duration(&self, d: Duration)
pub fn start_timer(&self) -> HistogramTimer
Auto Trait Implementations§
impl Freeze for DurationHistogram
impl RefUnwindSafe for DurationHistogram
impl Send for DurationHistogram
impl Sync for DurationHistogram
impl Unpin for DurationHistogram
impl UnwindSafe for DurationHistogram
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