pub struct HASH_COMPUTATION_DURATION { /* private fields */ }Expand description
Time spent computing BLAKE3 hashes (seconds).
Methods from Deref<Target = Histogram>§
pub fn start_timer(&self) -> HistogramTimer
pub fn start_timer(&self) -> HistogramTimer
Return a [HistogramTimer] to track a duration.
pub 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.
pub fn local(&self) -> LocalHistogram
pub fn local(&self) -> LocalHistogram
Return a [LocalHistogram] for single thread usage.
pub fn get_sample_sum(&self) -> f64
pub fn get_sample_sum(&self) -> f64
Return accumulated sum of all samples.
pub fn get_sample_count(&self) -> u64
pub fn get_sample_count(&self) -> u64
Return count of all samples.
Trait Implementations§
Source§impl Deref for HASH_COMPUTATION_DURATION
impl Deref for HASH_COMPUTATION_DURATION
impl LazyStatic for HASH_COMPUTATION_DURATION
Auto Trait Implementations§
impl Freeze for HASH_COMPUTATION_DURATION
impl RefUnwindSafe for HASH_COMPUTATION_DURATION
impl Send for HASH_COMPUTATION_DURATION
impl Sync for HASH_COMPUTATION_DURATION
impl Unpin for HASH_COMPUTATION_DURATION
impl UnsafeUnpin for HASH_COMPUTATION_DURATION
impl UnwindSafe for HASH_COMPUTATION_DURATION
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more