Commit e5bef70
authored
Rollup merge of rust-lang#64840 - michaelwoerister:self-profiling-raii-refactor, r=wesleywiser
SelfProfiler API refactoring and part one of event review
This PR refactors the `SelfProfiler` a little bit so that most profiling methods are RAII-based. The codegen backend code already had something similar, this refactoring pulls this functionality up into `SelfProfiler` itself, for general use.
The second commit of this PR is a review and update of the existing events we are already recording. Names have been made more consistent. CGU names have been removed from event names. They will be added back in when function parameter recording is implemented.
There is still some work to be done for adding new events, especially around trait resolution and the incremental system.
r? @wesleywiser14 files changed
Lines changed: 366 additions & 268 deletions
File tree
- src
- librustc_codegen_llvm
- back
- librustc_codegen_ssa
- back
- librustc_incremental/persist
- librustc_interface
- librustc_typeck
- librustc
- session
- ty
- query
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | 838 | | |
857 | 839 | | |
858 | 840 | | |
| |||
1251 | 1233 | | |
1252 | 1234 | | |
1253 | 1235 | | |
1254 | | - | |
| 1236 | + | |
1255 | 1237 | | |
1256 | 1238 | | |
1257 | 1239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
1030 | 1031 | | |
1031 | 1032 | | |
1032 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
1033 | 1036 | | |
1034 | 1037 | | |
1035 | 1038 | | |
| |||
1260 | 1263 | | |
1261 | 1264 | | |
1262 | 1265 | | |
| 1266 | + | |
1263 | 1267 | | |
1264 | 1268 | | |
1265 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
385 | 386 | | |
386 | | - | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
396 | | - | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
454 | | - | |
| 455 | + | |
455 | 456 | | |
456 | | - | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
473 | | - | |
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
477 | 475 | | |
478 | | - | |
479 | | - | |
| 476 | + | |
480 | 477 | | |
481 | 478 | | |
482 | 479 | | |
483 | 480 | | |
484 | 481 | | |
485 | 482 | | |
486 | | - | |
487 | 483 | | |
488 | 484 | | |
489 | 485 | | |
| |||
551 | 547 | | |
552 | 548 | | |
553 | 549 | | |
554 | | - | |
| 550 | + | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
| |||
571 | 567 | | |
572 | 568 | | |
573 | 569 | | |
574 | | - | |
| 570 | + | |
575 | 571 | | |
576 | 572 | | |
577 | 573 | | |
| |||
619 | 615 | | |
620 | 616 | | |
621 | 617 | | |
622 | | - | |
| 618 | + | |
623 | 619 | | |
624 | 620 | | |
625 | 621 | | |
| |||
0 commit comments