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

Statistics for autoscaling operations. More...

#include <scaling_metrics.h>

Collaboration diagram for kcenon::thread::autoscaling_stats:
Collaboration graph

Public Attributes

std::size_t scale_up_count {0}
 Number of scale-up events.
 
std::size_t scale_down_count {0}
 Number of scale-down events.
 
std::size_t decisions_evaluated {0}
 Number of decisions evaluated.
 
std::chrono::steady_clock::time_point last_scale_up
 Time of last scale-up event.
 
std::chrono::steady_clock::time_point last_scale_down
 Time of last scale-down event.
 
std::size_t peak_workers {0}
 Peak worker count observed.
 
std::size_t min_workers {0}
 Minimum worker count observed.
 

Detailed Description

Statistics for autoscaling operations.

Tracks historical scaling events and decisions for monitoring and debugging autoscaling behavior.

Definition at line 120 of file scaling_metrics.h.

Member Data Documentation

◆ decisions_evaluated

std::size_t kcenon::thread::autoscaling_stats::decisions_evaluated {0}

Number of decisions evaluated.

Definition at line 129 of file scaling_metrics.h.

129{0};

◆ last_scale_down

std::chrono::steady_clock::time_point kcenon::thread::autoscaling_stats::last_scale_down

Time of last scale-down event.

Definition at line 135 of file scaling_metrics.h.

◆ last_scale_up

std::chrono::steady_clock::time_point kcenon::thread::autoscaling_stats::last_scale_up

Time of last scale-up event.

Definition at line 132 of file scaling_metrics.h.

◆ min_workers

std::size_t kcenon::thread::autoscaling_stats::min_workers {0}

Minimum worker count observed.

Definition at line 141 of file scaling_metrics.h.

141{0};

Referenced by kcenon::thread::autoscaler::autoscaler(), and kcenon::thread::autoscaler::reset_stats().

◆ peak_workers

std::size_t kcenon::thread::autoscaling_stats::peak_workers {0}

Peak worker count observed.

Definition at line 138 of file scaling_metrics.h.

138{0};

Referenced by kcenon::thread::autoscaler::autoscaler().

◆ scale_down_count

std::size_t kcenon::thread::autoscaling_stats::scale_down_count {0}

Number of scale-down events.

Definition at line 126 of file scaling_metrics.h.

126{0};

◆ scale_up_count

std::size_t kcenon::thread::autoscaling_stats::scale_up_count {0}

Number of scale-up events.

Definition at line 123 of file scaling_metrics.h.

123{0};

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