Struct TimingStats
#[non_exhaustive]pub struct TimingStats {
pub count: u64,
pub total: Duration,
pub max: Duration,
pub p50: Duration,
pub p95: Duration,
}Expand description
How long something took over a window of runs
(Timings): a listener’s runs, or a point’s passes.
The quantiles may be approximate (an implementation may read them
from a histogram); the count, total and max are exact.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.count: u64How many runs.
total: DurationTheir time added up.
max: DurationThe longest.
p50: DurationThe median.
p95: DurationThe 95th percentile.
Implementations§
§impl TimingStats
impl TimingStats
pub fn new() -> TimingStats
pub fn new() -> TimingStats
No run.
Trait Implementations§
§impl Clone for TimingStats
impl Clone for TimingStats
§fn clone(&self) -> TimingStats
fn clone(&self) -> TimingStats
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 more§impl Debug for TimingStats
impl Debug for TimingStats
§impl Default for TimingStats
impl Default for TimingStats
§fn default() -> TimingStats
fn default() -> TimingStats
Returns the “default value” for a type. Read more
§impl PartialEq for TimingStats
impl PartialEq for TimingStats
impl Copy for TimingStats
impl Eq for TimingStats
impl StructuralPartialEq for TimingStats
Auto Trait Implementations§
impl Freeze for TimingStats
impl RefUnwindSafe for TimingStats
impl Send for TimingStats
impl Sync for TimingStats
impl Unpin for TimingStats
impl UnsafeUnpin for TimingStats
impl UnwindSafe for TimingStats
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