]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #64840 - michaelwoerister:self-profiling-raii-refactor, r=wesleywiser
authorTyler Mandry <tmandry@gmail.com>
Wed, 2 Oct 2019 06:06:16 +0000 (23:06 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2019 06:06:16 +0000 (23:06 -0700)
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? @wesleywiser

1  2 
src/librustc/session/mod.rs
src/librustc/ty/context.rs
src/librustc_codegen_llvm/lib.rs
src/librustc_codegen_ssa/base.rs
src/librustc_interface/passes.rs

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge