SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::SystemMetrics Class Reference

#include <SystemMetrics.hpp>

Static Public Member Functions

static void Initialize ()
static SystemMetricsData Query ()
 Reads the current CPU/RAM/GPU usage from the OS.
static void Shutdown ()

Detailed Description

Polls platform-specific counters (PDH on Windows, /proc on Linux) for CPU/RAM/GPU usage.

Definition at line 18 of file SystemMetrics.hpp.

Member Function Documentation

◆ Initialize()

void Sleak::SystemMetrics::Initialize ( )
static

Definition at line 106 of file SystemMetrics.cpp.

◆ Query()

SystemMetricsData Sleak::SystemMetrics::Query ( )
static

Reads the current CPU/RAM/GPU usage from the OS.

Definition at line 114 of file SystemMetrics.cpp.

◆ Shutdown()

void Sleak::SystemMetrics::Shutdown ( )
static

Definition at line 110 of file SystemMetrics.cpp.