Collects Sentinel power samples over a measured interval. More...
Declaration
class simaai::neat::PowerMonitor { ... }
#include <PowerTelemetry.h>
Friends Index
Public Constructors Index
Public Destructor Index
Public Operators Index
Public Member Functions Index
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
| friend struct internal::PowerMonitorAccess |
|
Public Constructors
PowerMonitor()
PowerMonitor()
| simaai::neat::PowerMonitor::PowerMonitor (const PowerMonitor &) |
|
delete
|
PowerMonitor()
| simaai::neat::PowerMonitor::PowerMonitor (PowerMonitor &&) |
|
noexcept
|
Public Destructor
~PowerMonitor()
| simaai::neat::PowerMonitor::~PowerMonitor () |
|
Public Operators
operator=()
| PowerMonitor & simaai::neat::PowerMonitor::operator= (const PowerMonitor &) |
|
delete
|
operator=()
| PowerMonitor & simaai::neat::PowerMonitor::operator= (PowerMonitor &&) |
|
noexcept
|
Public Member Functions
running()
| bool simaai::neat::PowerMonitor::running () |
|
True while the sampling thread is active.
Definition at line 255 of file PowerTelemetry.h.
sample_once()
| void simaai::neat::PowerMonitor::sample_once () |
|
Add Sentinel's latest sample now when it was not already added.
Definition at line 251 of file PowerTelemetry.h.
start()
| void simaai::neat::PowerMonitor::start () |
|
Start background sampling if enabled.
Definition at line 247 of file PowerTelemetry.h.
stop()
| void simaai::neat::PowerMonitor::stop () |
|
Stop background sampling and keep the final summary available.
Definition at line 249 of file PowerTelemetry.h.
summary()
| PowerSummary simaai::neat::PowerMonitor::summary () |
|
Return the current aggregate summary.
Definition at line 253 of file PowerTelemetry.h.
Private Member Attributes
impl_
| std::unique_ptr<Impl> simaai::neat::PowerMonitor::impl_ |
|
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.