Skip to main content

sample

Function sample 

Source
pub fn sample() -> bool
Expand description

Sample the resident set and trim when it grew by step_kb since the last trim. Returns whether it trimmed. Callers sample at a page or fragment cadence; the first sample of a thread trims.