PowerMonitor Class
Collects Sentinel power samples over a measured interval. More...
Declaration
Included Headers
Friends Index
| struct | internal::PowerMonitorAccess |
Public Constructors Index
| PowerMonitor (PowerMonitorOptions options={}) | |
| PowerMonitor (const PowerMonitor &)=delete | |
| PowerMonitor (PowerMonitor &&) noexcept | |
Public Destructor Index
| ~PowerMonitor () | |
Public Operators Index
| PowerMonitor & | operator= (const PowerMonitor &)=delete |
| PowerMonitor & | operator= (PowerMonitor &&) noexcept |
Public Member Functions Index
| void | start () |
|
Start background sampling if enabled. More... | |
| void | stop () |
|
Stop background sampling and keep the final summary available. More... | |
| void | sample_once () |
|
Add Sentinel's latest sample now when it was not already added. More... | |
| PowerSummary | summary () const |
|
Return the current aggregate summary. More... | |
| bool | running () const |
|
True while the sampling thread is active. More... | |
Private Member Attributes Index
| std::unique_ptr< Impl > | impl_ |
Description
Collects Sentinel power samples over a measured interval.
Start immediately before a measured interval and stop immediately after it. Only samples Sentinel takes in between are kept, so an interval shorter than about 2 s may have none. Never throws: when Sentinel cannot be read, the monitor warns once on stderr and collects no samples.
- Deprecated
-
Use TelemetryMonitor, which also records temperatures, CPU usage, and memory.
Definition at line 235 of file PowerTelemetry.h.
Friends
internal::PowerMonitorAccess
|
Definition at line 258 of file PowerTelemetry.h.