Skip to main content

snapshot

Function snapshot 

Source
pub fn snapshot() -> (usize, usize)
Expand description

The current (stat_count, read_count) totals.

For a test to snapshot before an operation and diff against afterward — never a global “reset to zero”, since cargo nextest gives each test its own process but a bare count-from-zero would still race a hypothetical future multi-threaded runner.