pub struct MemoryTrendSummary {
pub count: usize,
pub slope_mib_per_sec: f64,
pub min_mib: f64,
pub max_mib: f64,
pub extent_mib: f64,
pub slope_limit_mib_per_sec: f64,
pub extent_limit_mib: f64,
pub slope_failed: bool,
pub extent_failed: bool,
}Expand description
Deterministic memory-trend decision for a sampled process.
§Examples
let trend = ailloli_ui_bench::summarize_memory_trend(&[(0.0, 10.0), (1.0, 10.05)])?;
assert_eq!(trend.count, 2);
assert!(!trend.failed());Fields§
§count: usizeNumber of (seconds, MiB) samples.
slope_mib_per_sec: f64Theil-Sen RSS growth estimate in MiB per second.
min_mib: f64Minimum observed RSS in MiB.
max_mib: f64Maximum observed RSS in MiB.
extent_mib: f64max_mib - min_mib in MiB.
slope_limit_mib_per_sec: f64Locked slope limit in MiB per second.
extent_limit_mib: f64Locked RSS extent limit in MiB.
slope_failed: boolWhether slope strictly exceeded its limit.
extent_failed: boolWhether extent strictly exceeded its limit.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryTrendSummary
impl Clone for MemoryTrendSummary
Source§fn clone(&self) -> MemoryTrendSummary
fn clone(&self) -> MemoryTrendSummary
Returns a copy 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 MemoryTrendSummary
impl Debug for MemoryTrendSummary
Source§impl PartialEq for MemoryTrendSummary
impl PartialEq for MemoryTrendSummary
Source§impl Serialize for MemoryTrendSummary
impl Serialize for MemoryTrendSummary
impl StructuralPartialEq for MemoryTrendSummary
Auto Trait Implementations§
impl Freeze for MemoryTrendSummary
impl RefUnwindSafe for MemoryTrendSummary
impl Send for MemoryTrendSummary
impl Sync for MemoryTrendSummary
impl Unpin for MemoryTrendSummary
impl UnwindSafe for MemoryTrendSummary
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