Commit 5179e97
authored
nix-web-monitor: break down running activity by kind in the summary (#289)
Surfaces running `file_transfer` / `copy_path` / `query_path_info`
counts in the summary bar next to the running-builds figure.
## Why
A run can show many "running" build rows while the host CPU sits near
idle (e.g. 20 builds dispatched to a remote builder). The wall-clock is
going into substituter transfers, store copies, and path-info queries,
not compute. The summary previously showed only running builds and a
download count, so the cause was not legible at a glance.
## What
Adds `copying` (running `copy_path` + `copy_paths`) and `querying`
(running `query_path_info`) chips alongside the existing `downloading`
chip, all counted straight from the activity list.
## Design note
Nix's internal-json stream does not link an input download to the
specific build that needs it: substitutions are parented to the global
`realise` / `copy_paths` coordinators, not to a build activity. So a
truthful per-build "this row is slow because of these downloads"
attribution is not derivable from the stream. This change gives the
honest fleet-wide breakdown instead. A deeper panel correlation (merging
the builds and activities trees, bidirectional selection highlight) is a
good follow-up that benefits from visual iteration.
Third of three PRs (after #287 and #288).1 parent cddc6c1 commit 5179e97
1 file changed
Lines changed: 27 additions & 7 deletions
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
147 | 167 | | |
148 | 168 | | |
149 | 169 | | |
| |||
0 commit comments