Skip to content

Commit 3a1f8df

Browse files
authored
Rollup merge of #65137 - andjo403:selfProfiling_fix, r=michaelwoerister
remove event that causes panics in measureme tools the measureme tools summarize and crox do not alow a event to go out of scope of the parent event codegen_and_optimize_crate ends after the codegen_crate event r? @wesleywiser cc @michaelwoerister @Mark-Simulacrum
2 parents 0c96a12 + 993e3a5 commit 3a1f8df

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc_codegen_ssa/back/write.rs

-4
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
324324
let (coordinator_send, coordinator_receive) = channel();
325325
let sess = tcx.sess;
326326

327-
sess.prof.generic_activity_start("codegen_and_optimize_crate");
328-
329327
let crate_name = tcx.crate_name(LOCAL_CRATE);
330328
let crate_hash = tcx.crate_hash(LOCAL_CRATE);
331329
let no_builtins = attr::contains_name(&tcx.hir().krate().attrs, sym::no_builtins);
@@ -1777,8 +1775,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
17771775
self.backend.print_pass_timings()
17781776
}
17791777

1780-
sess.prof.generic_activity_end("codegen_and_optimize_crate");
1781-
17821778
(CodegenResults {
17831779
crate_name: self.crate_name,
17841780
crate_hash: self.crate_hash,

0 commit comments

Comments
 (0)