Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::metrics::WorkerMetrics Struct Reference

Per-worker metrics for detailed analysis. More...

#include <enhanced_metrics.h>

Collaboration diagram for kcenon::thread::metrics::WorkerMetrics:
Collaboration graph

Public Attributes

std::size_t worker_id {0}
 Worker identifier.
 
std::uint64_t tasks_executed {0}
 Total tasks executed by this worker.
 
std::uint64_t busy_time_ns {0}
 Total busy time in nanoseconds.
 
std::uint64_t idle_time_ns {0}
 Total idle time in nanoseconds.
 
bool is_busy {false}
 Current state (true = busy, false = idle).
 

Detailed Description

Per-worker metrics for detailed analysis.

Definition at line 181 of file enhanced_metrics.h.

Member Data Documentation

◆ busy_time_ns

std::uint64_t kcenon::thread::metrics::WorkerMetrics::busy_time_ns {0}

Total busy time in nanoseconds.

Definition at line 195 of file enhanced_metrics.h.

195{0};

◆ idle_time_ns

std::uint64_t kcenon::thread::metrics::WorkerMetrics::idle_time_ns {0}

Total idle time in nanoseconds.

Definition at line 200 of file enhanced_metrics.h.

200{0};

◆ is_busy

bool kcenon::thread::metrics::WorkerMetrics::is_busy {false}

Current state (true = busy, false = idle).

Definition at line 205 of file enhanced_metrics.h.

205{false};

◆ tasks_executed

std::uint64_t kcenon::thread::metrics::WorkerMetrics::tasks_executed {0}

Total tasks executed by this worker.

Definition at line 190 of file enhanced_metrics.h.

190{0};

◆ worker_id

std::size_t kcenon::thread::metrics::WorkerMetrics::worker_id {0}

Worker identifier.

Definition at line 185 of file enhanced_metrics.h.

185{0};

The documentation for this struct was generated from the following file: