Skip to main content

Module cpu_monitor

Module cpu_monitor 

Source
Expand description

CPU load monitoring for preventing system overload.

This module provides CPU load tracking with configurable thresholds and optional auto-throttling to maintain system responsiveness.

Structs§

CpuMonitor
Thread-safe CPU load monitor.
CpuMonitorConfig
CPU monitor configuration.
CpuOverloaded
CPU load exceeded error.
CpuStats
CPU load statistics.

Functions§

get_system_load
Simple system load check (returns average load if available).