work_pool_diagnostics.hpp file
Pure helpers behind the WorkPool periodic / final log lines.
BasicWorkPool::log_periodic_stats() and log_final_stats() run on the monitor thread and depend on live CPU / memory readings, so their decision logic (stall detection, which dispatch gate to blame, the compact throttle summary) was only reachable by actually wedging a pool. These free functions hold that logic so it can be unit tested with synthetic snapshots; the pool feeds them its live statistics.
Namespaces
- namespace gtopt
Classes
- struct gtopt::StallGateLimits
- Configured dispatch-gate thresholds of the pool.
- struct gtopt::StallGateSnapshot
- Live readings the stall diagnosis looks at.
- struct gtopt::StallTracker
- struct gtopt::ThrottleCounts
- Per-gate throttle counters (ticks on which each gate blocked).