pub struct Process {Show 30 fields
pub id: ProcId,
pub ppid: Option<u32>,
pub responsible_pid: Option<u32>,
pub name: String,
pub exe: String,
pub cmdline: Vec<String>,
pub cwd: Option<String>,
pub uid: Option<u32>,
pub user: Option<String>,
pub cpu_pct: Measured<f64>,
pub mem: MemBreakdown,
pub disk_io: DiskIo,
pub state: ProcState,
pub threads: Option<u32>,
pub idle_for_s: Measured<u64>,
pub markers: Markers,
pub cgroup: Option<String>,
pub oom_score: Option<i32>,
pub bundle_id: Option<String>,
pub model_files: Vec<String>,
pub age_s: Measured<u64>,
pub cpu_time_s: Measured<f64>,
pub duty_pct: Measured<f64>,
pub idle_rent_gib_h: Measured<f64>,
pub cwd_missing: Option<bool>,
pub exe_change: Option<ExeChange>,
pub project: Option<String>,
pub transcript_mtime_ms: Measured<u64>,
pub listening_no_clients: Option<bool>,
pub ns: Option<NsIds>,
}Fields§
§id: ProcId§ppid: Option<u32>§responsible_pid: Option<u32>macOS responsible pid (helpers/XPC → launching app).
name: StringShort name (comm / basename).
exe: StringExecutable path (may be empty when unreadable).
cmdline: Vec<String>argv. Raw in a live snapshot; redacted in every export.
cwd: Option<String>§uid: Option<u32>§user: Option<String>§cpu_pct: Measured<f64>Per-core percent (100 = one core busy); needs two samples.
mem: MemBreakdown§disk_io: DiskIo§state: ProcState§threads: Option<u32>§idle_for_s: Measured<u64>Seconds idle; Estimate quality means “≥ observed window” (no lineage data).
markers: Markers§cgroup: Option<String>Linux cgroup v2 path.
oom_score: Option<i32>Linux /proc/<pid>/oom_score.
bundle_id: Option<String>macOS bundle id of the owning app, when known.
model_files: Vec<String>Model weight files mapped/open (*.gguf, *.safetensors), when known.
age_s: Measured<u64>Seconds since the process started (now − start time).
cpu_time_s: Measured<f64>Total CPU time (user + system) since the process started, seconds.
duty_pct: Measured<f64>Duty cycle: CPU time ÷ age, in percent of one core (100 = one core busy for its whole life).
idle_rent_gib_h: Measured<f64>Idle rent: GiB-hours of footprint held while idle (footprint × idle time); always an estimate.
cwd_missing: Option<bool>Some(true): the working directory no longer exists; None: not checked / not readable.
exe_change: Option<ExeChange>The executable was deleted or replaced since the process started; None: unchanged or unknown.
project: Option<String>Project directory: git root of the cwd when known, else the cwd.
transcript_mtime_ms: Measured<u64>Agent session roots: modification time (ms since the epoch) of the session’s transcript file. The file’s content is never read.
listening_no_clients: Option<bool>Reserved for network data (not collected yet): Some(true) when the process listens on a port
and has no clients. Feeds the listening_no_clients staleness signal.
ns: Option<NsIds>Linux namespace identities (/proc/<pid>/ns/*, own processes only); None = not read or not Linux
(SPEC §11 “Namespaces”, crate::namespaces).