pub struct PerfStat { /* private fields */ }Expand description
Rolling-window performance statistics.
No GPU dependency; pure CPU value struct.
Implementations§
Source§impl PerfStat
impl PerfStat
Sourcepub fn new(name: &str, window: usize, warmup: usize) -> Self
pub fn new(name: &str, window: usize, warmup: usize) -> Self
Create a new accumulator.
name— human-readable label used in diagnostics.window— rolling window capacity (clamped to 1).warmup— samples discarded before statistics are valid.
Auto Trait Implementations§
impl Forget for PerfStat
impl Freeze for PerfStat
impl Move for PerfStat
impl RefUnwindSafe for PerfStat
impl Send for PerfStatwhere
RawVecInner: Send,
impl Sync for PerfStatwhere
RawVecInner: Sync,
impl Unpin for PerfStat
impl UnsafeUnpin for PerfStat
impl UnwindSafe for PerfStatwhere
RawVecInner: UnwindSafe,
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