proc-tree
Linux process tree — snapshot, incremental fork/exec/exit maintenance, ancestry queries, PID reuse detection.
Quick start
use ;
let tree = new;
let cache = new;
snapshot;
let info = resolve.unwrap;
println!;
let chain = build_chain_string;
Module structure
| Module | Purpose |
|---|---|
types |
PidNode, ProcInfo data types |
traits |
TreeStore, CacheStore trait definitions |
ops |
All algorithms: snapshot, resolve, display, children, etc. |
proc |
Raw /proc reading: parse_proc_entry, read_proc_comm, uid_to_username, read_proc_start_time_ns |
tree |
ProcEvent, ProcessLink types |
default_store |
DefaultStore<V>, DefaultTree, DefaultCache |
Custom backend
Implement TreeStore and CacheStore for any storage (Redis, moka, dashmap, ...). See docs.rs for the trait definitions.