|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Snapshot of backpressure statistics (copyable). More...
#include <backpressure_config.h>

Public Member Functions | |
| auto | acceptance_rate () const -> double |
| Returns acceptance rate (accepted / total attempts). | |
| auto | avg_block_time_ms () const -> double |
| Returns average block time per blocked operation. | |
Public Attributes | |
| std::uint64_t | jobs_accepted {0} |
| std::uint64_t | jobs_rejected {0} |
| std::uint64_t | jobs_dropped {0} |
| std::uint64_t | rate_limit_waits {0} |
| std::uint64_t | pressure_events {0} |
| std::uint64_t | total_block_time_ns {0} |
Snapshot of backpressure statistics (copyable).
This is a copyable snapshot of statistics, suitable for returning from getter methods.
Definition at line 348 of file backpressure_config.h.
|
inlinenodiscard |
Returns acceptance rate (accepted / total attempts).
Definition at line 361 of file backpressure_config.h.
References jobs_accepted, and jobs_rejected.
|
inlinenodiscard |
Returns average block time per blocked operation.
Definition at line 375 of file backpressure_config.h.
References rate_limit_waits, and total_block_time_ns.
| std::uint64_t kcenon::thread::backpressure_stats_snapshot::jobs_accepted {0} |
Definition at line 350 of file backpressure_config.h.
Referenced by acceptance_rate(), and kcenon::thread::backpressure_stats::snapshot().
| std::uint64_t kcenon::thread::backpressure_stats_snapshot::jobs_dropped {0} |
Definition at line 352 of file backpressure_config.h.
Referenced by kcenon::thread::backpressure_stats::snapshot().
| std::uint64_t kcenon::thread::backpressure_stats_snapshot::jobs_rejected {0} |
Definition at line 351 of file backpressure_config.h.
Referenced by acceptance_rate(), and kcenon::thread::backpressure_stats::snapshot().
| std::uint64_t kcenon::thread::backpressure_stats_snapshot::pressure_events {0} |
Definition at line 354 of file backpressure_config.h.
Referenced by kcenon::thread::backpressure_stats::snapshot().
| std::uint64_t kcenon::thread::backpressure_stats_snapshot::rate_limit_waits {0} |
Definition at line 353 of file backpressure_config.h.
Referenced by avg_block_time_ms(), and kcenon::thread::backpressure_stats::snapshot().
| std::uint64_t kcenon::thread::backpressure_stats_snapshot::total_block_time_ns {0} |
Definition at line 355 of file backpressure_config.h.
Referenced by avg_block_time_ms(), and kcenon::thread::backpressure_stats::snapshot().