|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
Snapshot of pool activity metrics. More...
#include <pool_statistics.hpp>
Public Attributes | |
| std::size_t | total_threads { 0 } |
| Number of worker threads owned by the pool. | |
| std::size_t | active_threads { 0 } |
| Number of workers currently executing a task. | |
| std::size_t | pending_tasks { 0 } |
| Number of queued tasks waiting for execution. | |
| std::size_t | completed_tasks { 0 } |
| Total number of tasks completed since pool start. | |
| std::size_t | stolen_tasks { 0 } |
| Total number of tasks stolen by workers (work-stealing pools). | |
| double | tasks_per_second { 0.0 } |
| Approximate throughput in tasks per second. | |
| std::chrono::microseconds | average_task_time { 0 } |
| Average task execution time measured by the backend. | |
Snapshot of pool activity metrics.
All values are best-effort observability counters and may change while a workload is running.
Definition at line 20 of file pool_statistics.hpp.
| std::size_t threadschedule::pool_statistics::active_threads { 0 } |
Number of workers currently executing a task.
Definition at line 25 of file pool_statistics.hpp.
| std::chrono::microseconds threadschedule::pool_statistics::average_task_time { 0 } |
Average task execution time measured by the backend.
Definition at line 35 of file pool_statistics.hpp.
| std::size_t threadschedule::pool_statistics::completed_tasks { 0 } |
Total number of tasks completed since pool start.
Definition at line 29 of file pool_statistics.hpp.
| std::size_t threadschedule::pool_statistics::pending_tasks { 0 } |
Number of queued tasks waiting for execution.
Definition at line 27 of file pool_statistics.hpp.
| std::size_t threadschedule::pool_statistics::stolen_tasks { 0 } |
Total number of tasks stolen by workers (work-stealing pools).
Definition at line 31 of file pool_statistics.hpp.
| double threadschedule::pool_statistics::tasks_per_second { 0.0 } |
Approximate throughput in tasks per second.
Definition at line 33 of file pool_statistics.hpp.
| std::size_t threadschedule::pool_statistics::total_threads { 0 } |
Number of worker threads owned by the pool.
Definition at line 23 of file pool_statistics.hpp.
Referenced by threadschedule::detail::submitting_pool_facade< Backend >::get_statistics().