pulsatrix
Loading...
Searching...
No Matches
pulsatrix::SystemSample Struct Reference

One point-in-time measurement of the host. More...

#include <system_monitor.hpp>

Public Attributes

std::chrono::system_clock::time_point timestamp
 Wall-clock time of the reading.
 
double elapsed_seconds = 0.0
 Seconds since SystemMonitor::start() (or construction, before start()).
 
std::optional< double > cpu_utilization_percent
 
std::optional< double > process_cpu_percent
 This process's CPU use, in percent of ONE logical CPU: a process saturating 8 cores reads ~800.
 
std::optional< double > memory_used_bytes
 System RAM in use (total - available).
 
std::optional< double > memory_total_bytes
 System RAM capacity.
 
std::optional< double > process_rss_bytes
 This process's resident set / working set.
 
std::optional< double > cpu_temperature_c
 CPU package/die temperature, degrees Celsius.
 
std::vector< GpuSample > gpus
 Every GPU detected (possibly empty).
 
std::string label
 Label set by the most recent SystemMonitor::mark().
 

Detailed Description

One point-in-time measurement of the host.

Note
Rates (cpu_utilization_percent, process_cpu_percent) are computed from the difference between this reading and the previous one taken on the same path (the background thread, or sample_now()); they are std::nullopt when no counter advanced between the two readings (e.g. two calls within the kernel's 10 ms tick).

Member Data Documentation

◆ cpu_temperature_c

std::optional<double> pulsatrix::SystemSample::cpu_temperature_c

CPU package/die temperature, degrees Celsius.

◆ cpu_utilization_percent

std::optional<double> pulsatrix::SystemSample::cpu_utilization_percent

System-wide, 0-100 across all logical CPUs.

◆ elapsed_seconds

double pulsatrix::SystemSample::elapsed_seconds = 0.0

Seconds since SystemMonitor::start() (or construction, before start()).

◆ gpus

std::vector<GpuSample> pulsatrix::SystemSample::gpus

Every GPU detected (possibly empty).

◆ label

std::string pulsatrix::SystemSample::label

Label set by the most recent SystemMonitor::mark().

◆ memory_total_bytes

std::optional<double> pulsatrix::SystemSample::memory_total_bytes

System RAM capacity.

◆ memory_used_bytes

std::optional<double> pulsatrix::SystemSample::memory_used_bytes

System RAM in use (total - available).

◆ process_cpu_percent

std::optional<double> pulsatrix::SystemSample::process_cpu_percent

This process's CPU use, in percent of ONE logical CPU: a process saturating 8 cores reads ~800.

◆ process_rss_bytes

std::optional<double> pulsatrix::SystemSample::process_rss_bytes

This process's resident set / working set.

◆ timestamp

std::chrono::system_clock::time_point pulsatrix::SystemSample::timestamp

Wall-clock time of the reading.


The documentation for this struct was generated from the following file: