Expand description
Process Execution Awareness — What’s running and consuming resources.
For persistent machines: track processes, resource consumption, and execution
context. Captures a ps aux snapshot, computes summaries (total CPU%, memory%,
zombie count), and identifies top consumers.
§Example
ⓘ
use runtimo_core::ProcessSnapshot;
let snap = ProcessSnapshot::capture();
println!("Processes: {}", snap.summary.total_processes);
println!("Zombies: {}", snap.summary.zombie_count);
for proc in snap.top_by_cpu(5) {
println!("{}: {:.1}% CPU", proc.command, proc.cpu_percent);
}Structs§
- Process
Info - Information about a single running process.
- Process
Snapshot - Process list snapshot at a point in time.
- Process
Summary - Aggregated summary of a process snapshot.