pub fn sample() -> bool
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.
step_kb