|
threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
|
A snapshot of a pool's headline counters. More...
#include <stats.hpp>

Public Attributes | |
| std::uint64_t | pool_id = 0 |
| std::string | name |
| PoolState | state = PoolState::Running |
| std::size_t | workers = 0 |
| Currently live workers. | |
| std::size_t | core_workers = 0 |
min_workers. | |
| std::size_t | max_workers = 0 |
| std::size_t | active = 0 |
Workers currently in Running. | |
| std::size_t | idle = 0 |
Workers currently in Idle. | |
| std::size_t | queued = 0 |
| Tasks waiting in the queue. | |
| std::uint64_t | completed = 0 |
| std::uint64_t | failed = 0 |
| std::chrono::nanoseconds | avg_execution_duration |
| Rolling average across completed tasks. | |
| std::uint64_t | scale_ups = 0 |
| std::uint64_t | scale_downs = 0 |
A snapshot of a pool's headline counters.
| std::size_t threadman::ThreadPoolStats::active = 0 |
Workers currently in Running.
| std::chrono::nanoseconds threadman::ThreadPoolStats::avg_execution_duration |
Rolling average across completed tasks.
| std::uint64_t threadman::ThreadPoolStats::completed = 0 |
| std::size_t threadman::ThreadPoolStats::core_workers = 0 |
min_workers.
| std::uint64_t threadman::ThreadPoolStats::failed = 0 |
| std::size_t threadman::ThreadPoolStats::idle = 0 |
Workers currently in Idle.
| std::size_t threadman::ThreadPoolStats::max_workers = 0 |
| std::string threadman::ThreadPoolStats::name |
| std::uint64_t threadman::ThreadPoolStats::pool_id = 0 |
| std::size_t threadman::ThreadPoolStats::queued = 0 |
Tasks waiting in the queue.
| std::uint64_t threadman::ThreadPoolStats::scale_downs = 0 |
| std::uint64_t threadman::ThreadPoolStats::scale_ups = 0 |
| PoolState threadman::ThreadPoolStats::state = PoolState::Running |
| std::size_t threadman::ThreadPoolStats::workers = 0 |
Currently live workers.