pub fn thread_count(metrics: &PayloadMetrics) -> usizeExpand description
Count the number of snapshots.0.threads.N.{Ok,Err}.tid entries
in the flat metric list, capped at MAX_SCAN_INDEX. Each index
carries exactly one variant wrapper (Ok or Err); the count
terminates at the first index where neither exists.