Function summarize_memory_trend

Source
pub fn summarize_memory_trend(
    samples: &[(f64, f64)],
) -> Result<MemoryTrendSummary, StatsError>
Expand description

Evaluates the locked tree virtualization RSS slope and extent limits.

Each pair is (elapsed_seconds, rss_mib). Equality at either limit passes; only strictly larger values fail.

§Errors

Propagates all theil_sen_slope input errors.

§Examples

let trend = ailloli_ui_bench::summarize_memory_trend(&[(0.0, 100.0), (10.0, 100.5)])?;
assert_eq!(trend.extent_mib, 0.5);
assert!(!trend.failed());