|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Statistics collected by ThreadPool. More...
#include <thread_pool.H>
Public Member Functions | |
| size_t | total_processed () const noexcept |
| Total tasks processed (completed + failed) | |
| double | queue_utilization (size_t soft_limit) const noexcept |
| Queue utilization as percentage (0-100) | |
Public Attributes | |
| size_t | tasks_completed = 0 |
| Total tasks completed. | |
| size_t | tasks_failed = 0 |
| Tasks that threw exceptions (detached) | |
| size_t | current_queue_size = 0 |
| Current pending tasks. | |
| size_t | current_active = 0 |
| Currently executing tasks. | |
| size_t | num_workers = 0 |
| Number of worker threads. | |
| size_t | peak_queue_size = 0 |
| Maximum queue size observed. | |
Statistics collected by ThreadPool.
Provides insight into pool performance for monitoring and tuning.
Definition at line 163 of file thread_pool.H.
Queue utilization as percentage (0-100)
Definition at line 179 of file thread_pool.H.
References current_queue_size, and Aleph::maps().
Referenced by TEST_F().
|
inlinenoexcept |
Total tasks processed (completed + failed)
Definition at line 173 of file thread_pool.H.
References tasks_completed, and tasks_failed.
| size_t Aleph::ThreadPoolStats::current_active = 0 |
Currently executing tasks.
Definition at line 168 of file thread_pool.H.
Referenced by Aleph::ThreadPool::get_stats().
| size_t Aleph::ThreadPoolStats::current_queue_size = 0 |
Current pending tasks.
Definition at line 167 of file thread_pool.H.
Referenced by Aleph::ThreadPool::get_stats(), queue_utilization(), and TEST_F().
| size_t Aleph::ThreadPoolStats::num_workers = 0 |
Number of worker threads.
Definition at line 169 of file thread_pool.H.
Referenced by Aleph::ThreadPool::get_stats().
| size_t Aleph::ThreadPoolStats::peak_queue_size = 0 |
Maximum queue size observed.
Definition at line 170 of file thread_pool.H.
Referenced by Aleph::ThreadPool::get_stats().
| size_t Aleph::ThreadPoolStats::tasks_completed = 0 |
Total tasks completed.
Definition at line 165 of file thread_pool.H.
Referenced by Aleph::ThreadPool::get_stats(), and total_processed().
| size_t Aleph::ThreadPoolStats::tasks_failed = 0 |
Tasks that threw exceptions (detached)
Definition at line 166 of file thread_pool.H.
Referenced by Aleph::ThreadPool::get_stats(), and total_processed().