Skip to main content

Crate metop

Crate metop 

Source
Expand description

metop: Linux memory analysis TUI.

Two-tier sampling, driven by measured costs: tier 1 (every tick): /proc//statm, ~15-30 ms for the whole system tier 2 (budgeted): /proc//smaps_rollup, 1.5 ms avg, up to 19 ms detail (on demand): /proc//smaps, 30-40 ms

Modules§

app
apps
Grouping processes into “apps” and squarified treemap layout.
cgroup
cgroup v2 memory accounting, read from /sys/fs/cgroup.
diff
metop --diff A.json B.json: compare two snapshots produced by --json.
i18n
UI language and per-page help.
json
Machine-readable snapshot for --json: stable ordering, explicit units, so two runs can be diffed (metop --json > a; metop --json > b; diff a b).
model
procfs
/proc access is delegated to the procfs crate (typed, maintained, MIT). This module only maps its output onto the two-tier cost model: statm -> cheap RSS sweep, no page-table walk smaps_rollup -> exact Rss/Pss/USS, walks the page table smaps -> per-VMA breakdown, grouped for display
sampler
theme
Built-in colour themes.
ui