Skip to main content

poll_all

Function poll_all 

Source
pub fn poll_all()
Expand description

Re-reads the watermark of every tracked thread, folding what it finds into their recorded peaks.

This is the reason the crate can describe threads that never call into it themselves: a watermark lives in the stack, so anyone can read it. Call it before taking a snapshot, or let a background sampler call it on a period.

§Cost

One pass over the untouched part of every tracked thread’s painted region.