pub struct SnapshotSeries { /* private fields */ }Expand description
A series of snapshots over time.
Implementations§
Source§impl SnapshotSeries
impl SnapshotSeries
Sourcepub fn add(&mut self, snapshot: MemorySnapshot)
pub fn add(&mut self, snapshot: MemorySnapshot)
Add a snapshot to the series.
Sourcepub fn snapshots(&self) -> &[MemorySnapshot]
pub fn snapshots(&self) -> &[MemorySnapshot]
Get all snapshots.
Sourcepub fn first(&self) -> Option<&MemorySnapshot>
pub fn first(&self) -> Option<&MemorySnapshot>
Get the first snapshot.
Sourcepub fn last(&self) -> Option<&MemorySnapshot>
pub fn last(&self) -> Option<&MemorySnapshot>
Get the last snapshot.
Sourcepub fn total_diff(&self) -> Option<SnapshotDiff>
pub fn total_diff(&self) -> Option<SnapshotDiff>
Get the diff between first and last snapshots.
Sourcepub fn has_growth_trend(&self) -> bool
pub fn has_growth_trend(&self) -> bool
Check for memory growth trend.
Sourcepub fn growth_rate(&self) -> f64
pub fn growth_rate(&self) -> f64
Get memory growth rate (bytes per second).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnapshotSeries
impl RefUnwindSafe for SnapshotSeries
impl Send for SnapshotSeries
impl Sync for SnapshotSeries
impl Unpin for SnapshotSeries
impl UnwindSafe for SnapshotSeries
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