Skip to main content

Module blockstats_detail

Module blockstats_detail 

Source
Expand description

What a terminal’s stats badge tooltip shows beyond the badge’s own CPU and memory (blockstats.detail), and the badge’s peak memory.

The badge (sysinfo::run_sysinfo_loop, through sampler::panes) counts the pane’s processes as Tower groups them: its Job Object or cgroup, else its shell’s tree. The tooltip reads the same Tower task (from_task), so it lists the processes the badge counts: their names, when the shell started, and two more memory figures, private and committed. It shares Tower’s process snapshot, which is reused within 900 ms, so an open tooltip adds no second read of the process table.

A remote pane (SSH, WSL) is measured on the machine it is connected to, by AgentMux’s helper there (PaneProcs); remote turns its answer into the badge’s figures, with a peak kept here. SPEC_TERMINAL_STATS_BADGE_REMOTE_PANES_2026_10_12.md.

Structs§

Peaks
The highest memory each pane’s badge has shown since AgentMux started watching its shell. A new shell in the same pane (a restart) starts over.

Functions§

from_task
The tooltip’s numbers for a pane’s Tower task. memory_metric is the snapshot’s: what each process’s private memory measures.
remote
A remote pane’s helper answer as the badge’s figures, with its peak.
remote_unavailable
A remote pane whose machine couldn’t be asked, and why.

Type Aliases§

Shell
Which shell a peak is for: its PID and start time, so a restarted shell that got the old one’s PID back is still a new shell.