Commit cc362ba
committed
Replace 4 counter track components with a single generic TrackCounter
Collapse the separate Memory, Power, ProcessCPU, and Bandwidth track
implementations into a single TrackCounter component that renders any
counter type using CounterDisplayConfig from PR #5912.
The LocalTrack union type is simplified from 8 variants to 5 by
replacing 'memory', 'power', 'process-cpu', and 'bandwidth' with a
single 'counter' type. The component branches on display.graphType
for canvas drawing (accumulated vs rate) and on display.unit for
tooltip rendering (bytes, pWh, percent, etc.).
Track index ordering (for URL backward compatibility) is handled by
a category-based mapping function. Display ordering uses the new
display.sortWeight field.
Part of #5752.1 parent 21adfa0 commit cc362ba
31 files changed
Lines changed: 1243 additions & 2972 deletions
File tree
- src
- actions
- app-logic
- components/timeline
- profile-logic
- selectors
- test
- components
- __snapshots__
- fixtures/profiles
- store
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 350 | + | |
354 | 351 | | |
355 | 352 | | |
356 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
| |||
61 | 53 | | |
62 | 54 | | |
63 | 55 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 56 | | |
74 | 57 | | |
75 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | | - | |
33 | | - | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
| |||
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 106 | + | |
| 107 | + | |
113 | 108 | | |
114 | 109 | | |
115 | 110 | | |
116 | 111 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
| |||
241 | 232 | | |
242 | 233 | | |
243 | 234 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 235 | + | |
248 | 236 | | |
249 | 237 | | |
250 | 238 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments