Process grouping¶
The TUI supports both Flat and Grouped by parent views so you can inspect individual workers or aggregate resources by build server/daemon.
Switching modes¶
- The TUI starts in Flat mode.
- Press
vto toggle Grouped by parent mode (Grouped by parentappears in the summary strip).
Hierarchy roots and tree markers¶
Daemonitor tracks parent-child ownership continuously—even while in Flat mode—using immutable (pid, startTimeMs) process identity so PID reuse cannot misattribute children.
Two process types act as hierarchy roots:
GRADLE_DAEMONXCODE_BUILD_SERVICE
When a root has one or more owned child processes:
- Expanded roots display
▼and list children sorted by PID ascending with├/└tree connectors. - Collapsed roots display
▶and hide child rows. - When the
PROJECTcolumn has sufficient room (>= 16characters remaining), the root row appends a child count suffix such as(+3 children).
Aggregated vs. individual measurements¶
In Grouped mode, a group root row displays aggregated measurements across the root plus all of its owned children for:
RSS(RSSMemoryMB)CPU(CPUPercent)FOOTPRINT(PhysicalFootprintBytes, when available)
All other columns on the root row (such as PID, HEAP, XMX, and GC counters) remain the root process's own values. Expanded child rows always display their own individual measurements.
Double-counting prevention and reparenting¶
- Hierarchy roots are never nested inside another root.
- Each process is emitted once in the rendered table.
- Once a child's parent
(pid, startTimeMs)is observed, the TUI remembers that parent even if the child is transiently reparented, evicting the link only when the child exits.
Expand and collapse controls¶
| Key | Action |
|---|---|
v |
Toggle Flat / Grouped mode |
Left / h |
Collapse the selected group root |
Right / l |
Expand the selected group root |
E |
Expand all GRADLE_DAEMON groups |
C |
Collapse all GRADLE_DAEMON groups |