![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <cpu_monitor.hpp>
Public Member Functions | |
CPUMonitor () noexcept=default | |
CPUMonitor (const CPUMonitor &cpu_monitor) noexcept=default | |
CPUMonitor (CPUMonitor &&cpu_monitor) noexcept=default | |
~CPUMonitor ()=default | |
CPUMonitor & | operator= (const CPUMonitor &cpu_monitor) noexcept=default |
CPUMonitor & | operator= (CPUMonitor &&cpu_monitor) noexcept=default |
void | Start () noexcept |
void | Stop () noexcept |
void | Restart () noexcept |
void | Resume () noexcept |
F64 | GetCPUDeltaPercentage () noexcept |
F64 | GetTotalCPUDeltaPercentage () noexcept |
Private Attributes | |
WallClockTimer | m_wall_clock_timer |
CPUTimer | m_core_clock_timer |
A class of CPU monitors for monitoring CPU usage.
|
defaultnoexcept |
Constructs a CPU monitor.
|
defaultnoexcept |
Constructs a CPU monitor from the given CPU monitor.
[in] | cpu_monitor | A reference to the CPU monitor to copy. |
|
defaultnoexcept |
Constructs a CPU monitor by moving the given CPU monitor.
[in] | cpu_monitor | A reference to the CPU monitor to move. |
|
default |
Destructs this CPU monitor.
|
noexcept |
Returns the CPU delta percentage of this CPU monitor's process.
|
noexcept |
Returns the total CPU delta percentage of this CPU monitor's process.
|
defaultnoexcept |
Copies the given CPU monitor to this CPU monitor.
[in] | cpu_monitor | A reference to the CPU monitor to copy. |
|
defaultnoexcept |
Moves the given CPU monitor to this CPU monitor.
[in] | cpu_monitor | A reference to the CPU monitor to move. |
|
noexcept |
Restarts this CPU monitor.
|
noexcept |
Resumes this CPU monitor.
|
noexcept |
Starts this CPU monitor.
|
noexcept |
Stops this CPU monitor.
|
private |
The core clock per core timer of this CPU monitor.
|
private |
The wall clock timer of this CPU monitor.