OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
system_performance_monitor.SystemPerformanceMonitor Class Reference

Own one sampler, a bounded history, and a read-only snapshot cache. More...

Public Member Functions

None start (self)
 Start sampling in a worker; never perform firmware calls on the UI thread.
None close (self)
 Stop the owned worker before releasing its sampler.
SystemDiagnosticsSnapshot snapshot (self)
 Return the cached sample immediately, or an empty sample during warmup.
tuple[SystemDiagnosticsSnapshot,...] history (self)
 Return samples in acquisition order for local trend views.
dict[str, object] payload (self)
 Return versioned SI telemetry and two minutes of bounded history.

Protected Member Functions

None _observe_failure (self, str sampler, Exception|None error=None)
 Report degradation/recovery once without retaining telemetry or error text.

Detailed Description

Own one sampler, a bounded history, and a read-only snapshot cache.


The documentation for this class was generated from the following file:
  • services/common/system_performance_monitor.py