pulsatrix
Loading...
Searching...
No Matches
system_monitor.hpp File Reference

Live CPU/GPU utilization, memory and temperature monitoring with a streaming log. More...

#include <chrono>
#include <cstddef>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for system_monitor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pulsatrix::GpuSample
 One GPU's readings within a SystemSample. More...
 
struct  pulsatrix::SystemSample
 One point-in-time measurement of the host. More...
 
struct  pulsatrix::MetricCapability
 Whether one metric can be read on this machine, and from where – or why not. More...
 
class  pulsatrix::SystemMonitor
 Samples CPU/GPU utilization, memory use and temperatures on a background thread, keeps a bounded in-memory history, and streams every sample to a log file. More...
 
struct  pulsatrix::SystemMonitor::Options
 Construction options. More...
 

Namespaces

namespace  pulsatrix
 
namespace  pulsatrix::detail
 

Enumerations

enum class  pulsatrix::LogFormat { pulsatrix::LogFormat::JsonLines , pulsatrix::LogFormat::Csv }
 Log record encoding. More...
 

Functions

std::string pulsatrix::format_iso8601_utc (std::chrono::system_clock::time_point tp)
 Formats tp as ISO-8601 UTC with milliseconds, e.g. "2026-10-02T12:34:56.789Z".
 
std::string pulsatrix::sample_to_json (const SystemSample &sample)
 Encodes sample as one JSON object (no trailing newline), the JSON Lines log record.
 

Detailed Description

Live CPU/GPU utilization, memory and temperature monitoring with a streaming log.