Commit 33be686
authored
refactor(timings): store UnitData in RenderContext instead (#16346)
### What does this PR try to resolve?
This makes `RenderContext` more self-contained,
so it no longer relies on full `Unit` info
and can potentially be replayed from a log file.
Part of <#15844>.
### How to test and review this PR?
Compare HTML report before and after to ensure it is not broken:
```
cargo clean
rustup run nightly target/debug/cargo build --timings -p cargo-util
cargo clean
rustup run nightly target/debug/cargo build --timings -p cargo-util -Zsection-timings
```
This should have no change on end-user side (except the first commit
removing `/rest`)File tree
3 files changed
+155
-184
lines changed- src/cargo/core/compiler/timings
3 files changed
+155
-184
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
478 | 480 | | |
479 | 481 | | |
480 | 482 | | |
481 | 483 | | |
482 | | - | |
| 484 | + | |
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
| |||
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
| |||
0 commit comments