Skip to content

Commit a116e7b

Browse files
authored
Rollup merge of #72376 - wesleywiser:record_cgu_name, r=Mark-Simulacrum
[self-profling] Record the cgu name when doing codegen for a module
2 parents f7ed13b + 8ac1699 commit a116e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub fn compile_codegen_unit(
100100
tcx: TyCtxt<'tcx>,
101101
cgu_name: Symbol,
102102
) -> (ModuleCodegen<ModuleLlvm>, u64) {
103-
let prof_timer = tcx.prof.generic_activity("codegen_module");
103+
let prof_timer = tcx.prof.generic_activity_with_arg("codegen_module", cgu_name.to_string());
104104
let start_time = Instant::now();
105105

106106
let dep_node = tcx.codegen_unit(cgu_name).codegen_dep_node(tcx);

0 commit comments

Comments
 (0)