Struct libreda_db::profile::PerfCounterResult
source · 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 copy 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<PerfCounterResult> for PerfCounterResult
impl PartialEq<PerfCounterResult> for PerfCounterResult
source§fn eq(&self, other: &PerfCounterResult) -> bool
fn eq(&self, other: &PerfCounterResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.