pub struct PerfCounterResult {
pub num_calls: u64,
pub total_time: Duration,
pub min_time: Duration,
pub max_time: Duration,
}Expand description
Statistics on calls of a single function.
Fields§
§num_calls: u64Number of function calls.
total_time: DurationTotal time spent in this function.
min_time: DurationShortest measured duration spend in this function.
max_time: DurationLongest measured duration spend in this function.
Implementations§
Trait Implementations§
Source§impl Clone for PerfCounterResult
impl Clone for PerfCounterResult
Source§fn clone(&self) -> PerfCounterResult
fn clone(&self) -> PerfCounterResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfCounterResult
impl Debug for PerfCounterResult
Source§impl PartialEq for PerfCounterResult
impl PartialEq for PerfCounterResult
impl Copy for PerfCounterResult
impl Eq for PerfCounterResult
impl StructuralPartialEq for PerfCounterResult
Auto Trait Implementations§
impl Freeze for PerfCounterResult
impl RefUnwindSafe for PerfCounterResult
impl Send for PerfCounterResult
impl Sync for PerfCounterResult
impl Unpin for PerfCounterResult
impl UnwindSafe for PerfCounterResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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