SysstatSourceSystem metrics collection library.
Sysstat provides stateless, poll-based system monitoring. The caller manages state and sampling intervals. Each module samples instantaneous or cumulative values from the operating system. CPU, network, and disk I/O statistics are cumulative since boot and require two samples to compute usage percentages; memory statistics are instantaneous.
Supported platforms: Linux and macOS. Platform-specific behavior is documented per module. Some metrics have limited availability on certain platforms (e.g., macOS CPU counters populate only user/nice/system/idle fields).
loadavg () returns the 1, 5, and 15 minute load averages.
uptime () returns system uptime in seconds.