Expand description
Per-instance metrics wrapper.
Wraps the base MpscQueue with relaxed atomic counters for
enqueue success/fail, dequeue success/fail, total batch items
drained, and CAS retries. Counters are relaxed because they’re
advisory diagnostics, not ordering primitives.
All counters are zero-cost when the wrapper isn’t used; the feature flag keeps them out of the base build.
Structs§
- Metrics
Mpsc Queue - Wrapping queue that tracks per-instance counters.
- Queue
Metrics Snapshot - Immutable snapshot of the counters at one instant.