Skip to content

Commit 8ac1699

Browse files
committed
[self-profling] Record the cgu name when doing codegen for a module
1 parent 0862458 commit 8ac1699

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)