]> git.lizzy.rs Git - rust.git/commit
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)
commit8f5f92a07a1c3116eae83cbd4ad550f6d268bbe9
tree6fa5b251a66d0b679f7de1c6530113e960fa4b6b
parent0e88e56a9a535bc0bf3b6c88f08a67ac33589c4a
parentd94262272bbdc700689a012a2e8a34adbe2a0f18
Rollup merge of #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? @wesleywiser
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