Tracks per-process burst history and EWMA burst prediction.
More...
#include <statistics.h>
|
| std::unique_ptr< Impl > | impl_ |
Tracks per-process burst history and EWMA burst prediction.
Definition at line 13 of file statistics.h.
◆ Statistics() [1/3]
| contur::Statistics::Statistics |
( |
double | alpha = 0.5 | ) |
|
|
explicit |
◆ ~Statistics()
| contur::Statistics::~Statistics |
( |
| ) |
|
◆ Statistics() [2/3]
| contur::Statistics::Statistics |
( |
const Statistics & | | ) |
|
|
delete |
◆ Statistics() [3/3]
| contur::Statistics::Statistics |
( |
Statistics && | | ) |
|
|
noexcept |
◆ alpha()
| double contur::Statistics::alpha |
( |
| ) |
const |
|
nodiscardnoexcept |
Returns EWMA alpha in range (0, 1].
◆ clear()
| void contur::Statistics::clear |
( |
ProcessId | pid | ) |
|
Clears statistics for one process.
◆ hasPrediction()
| bool contur::Statistics::hasPrediction |
( |
ProcessId | pid | ) |
const |
|
nodiscardnoexcept |
Returns true if the process already has a prediction.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ predictedBurst()
Returns the current predicted burst (0 if unknown).
◆ recordBurst()
| void contur::Statistics::recordBurst |
( |
ProcessId | pid, |
|
|
Tick | burst ) |
Records an observed CPU burst for the process.
◆ reset()
| void contur::Statistics::reset |
( |
| ) |
|
Clears statistics for all processes.
◆ impl_
| std::unique_ptr<Impl> contur::Statistics::impl_ |
|
private |
The documentation for this class was generated from the following file: