pub struct Counted {
pub min: u64,
pub max: u64,
pub runs: u32,
}Expand description
Instruction counts from repeated cachegrind runs.
Fields§
§min: u64§max: u64§runs: u32Implementations§
Source§impl Counted
impl Counted
Sourcepub fn spread_pct(&self) -> f64
pub fn spread_pct(&self) -> f64
Relative spread across runs, as a percentage of the minimum.
Sourcepub fn is_suspect(&self) -> bool
pub fn is_suspect(&self) -> bool
Whether this subject looks non-hermetic.
The metric is deterministic; the program being measured need not be. A CLI that checks for updates, reads a cache it may have just created, or resolves DNS retires a different number of instructions depending on conditions that have nothing to do with the code under test.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counted
impl RefUnwindSafe for Counted
impl Send for Counted
impl Sync for Counted
impl Unpin for Counted
impl UnsafeUnpin for Counted
impl UnwindSafe for Counted
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