pub struct MemoryReport {
pub baseline_rss: usize,
pub current_rss: usize,
pub peak_rss: usize,
pub delta_rss: usize,
pub per_operation_bytes: Option<usize>,
pub sample_count: usize,
pub leak_suspect: bool,
}Expand description
Report summarizing memory usage measurements.
Fields§
§baseline_rss: usizeBaseline RSS at tracker creation.
current_rss: usizeMost recent RSS measurement.
peak_rss: usizePeak RSS observed during tracking.
delta_rss: usizeRSS change from baseline to current.
per_operation_bytes: Option<usize>Estimated bytes per operation (if multiple samples).
sample_count: usizeTotal number of samples taken.
leak_suspect: boolWhether a memory leak trend was detected.
Implementations§
Source§impl MemoryReport
impl MemoryReport
Sourcepub fn compare(&self, baseline: &Self) -> MemoryComparison
pub fn compare(&self, baseline: &Self) -> MemoryComparison
Compare against a baseline report.
Trait Implementations§
Source§impl Clone for MemoryReport
impl Clone for MemoryReport
Source§fn clone(&self) -> MemoryReport
fn clone(&self) -> MemoryReport
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 moreSource§impl Debug for MemoryReport
impl Debug for MemoryReport
Auto Trait Implementations§
impl Freeze for MemoryReport
impl RefUnwindSafe for MemoryReport
impl Send for MemoryReport
impl Sync for MemoryReport
impl Unpin for MemoryReport
impl UnwindSafe for MemoryReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).