Skip to main content

thread_snapshot

Function thread_snapshot 

Source
pub fn thread_snapshot() -> Counts
Expand description

The calling thread’s unflushed counts, without consuming them.

Use paired reads to attribute synchronous diagnostic work without also counting workers that finish during it. A flush_thread between reads starts a new local interval; these are not lifetime totals. No other thread’s counts are included.