pyfebiopt.monitoring.system_stats
System statistics helpers for the monitoring web UI.
Classes
Collect best-effort CPU, memory, and disk metrics. |
Module Contents
- class pyfebiopt.monitoring.system_stats.SystemStatsCollector(*, disk_limit: int = 4)
Collect best-effort CPU, memory, and disk metrics.
Configure stats collection limits.
- Parameters:
disk_limit – Maximum number of disks to report.
- disk_limit
- property process_support: bool
Return
Truewhen process inspection is available.
- collect() dict[str, Any]
Return a snapshot of host CPU, memory, and disk usage.
- collect_processes(*, root: str | os.PathLike[str] | None = None) list[dict[str, Any]]
Return lightweight process info filtered to those under
root.