openhands.runtime.utils.system_stats
Utilities for getting system resource statistics.
get_system_stats
def get_system_stats() -> dict
Get current system resource statistics.
Returns:
dict
- A dictionary containing:- cpu_percent: CPU usage percentage for the current process
- memory: Memory usage stats (rss, vms, percent)
- disk: Disk usage stats (total, used, free, percent)
- io: I/O statistics (read/write bytes)