async fn reset_and_snapshot_break_stats(scheduler: &Scheduler) -> BreakStatsExpand description
Atomically replace the scheduler’s in-session counters with their default and return the snapshot the emit should ship. Extracted as a separate helper so the lock-then-snapshot ordering can be tested against a real concurrent writer.