pub enum SampleMode {
RunningOnly,
Exact,
}Expand description
Controls whether exact timing samples are retained.
This governs the cumulative snapshot from StatsCollector::snapshot,
where the choice applies uniformly to every timing metric, so that snapshot
never mixes median-capable and median-incapable timing metrics. Rolling
snapshots are recomputed with running statistics whatever this is set to;
see StatsCollector::rolling_count.
Variants§
RunningOnly
Keep only running statistics; medians are not available for any timing metric, and retention stays bounded for long-running sessions.
Exact
Retain exact samples for every timing metric, so each one reports a median once it has samples in the cumulative snapshot. Retention grows with the probe count.
Trait Implementations§
Source§impl Clone for SampleMode
impl Clone for SampleMode
impl Copy for SampleMode
Source§impl Debug for SampleMode
impl Debug for SampleMode
impl Eq for SampleMode
Source§impl PartialEq for SampleMode
impl PartialEq for SampleMode
impl StructuralPartialEq for SampleMode
Auto Trait Implementations§
impl Freeze for SampleMode
impl RefUnwindSafe for SampleMode
impl Send for SampleMode
impl Sync for SampleMode
impl Unpin for SampleMode
impl UnsafeUnpin for SampleMode
impl UnwindSafe for SampleMode
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