pub struct PeakMemorySampler { /* private fields */ }Expand description
Tracks the peak resident set size (RSS) of the current process across a profiling run.
Engines call sample at chunk/batch boundaries; the peak
observed feeds ExecutionMetadata::memory_peak_mb. The reading is the
whole-process RSS, so on embedded surfaces (e.g. the Python extension) it
includes host-process memory — it is an upper bound on what profiling used,
suitable for verifying the bounded-memory claim, not an exact attribution.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeakMemorySampler
impl RefUnwindSafe for PeakMemorySampler
impl Send for PeakMemorySampler
impl Sync for PeakMemorySampler
impl Unpin for PeakMemorySampler
impl UnsafeUnpin for PeakMemorySampler
impl UnwindSafe for PeakMemorySampler
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