Skip to content

Commit

Permalink
[self-profling] Record the cgu name when doing codegen for a module
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed May 20, 2020
1 parent 0862458 commit 8ac1699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/base.rs
Expand Up @@ -100,7 +100,7 @@ pub fn compile_codegen_unit(
tcx: TyCtxt<'tcx>,
cgu_name: Symbol,
) -> (ModuleCodegen<ModuleLlvm>, u64) {
let prof_timer = tcx.prof.generic_activity("codegen_module");
let prof_timer = tcx.prof.generic_activity_with_arg("codegen_module", cgu_name.to_string());
let start_time = Instant::now();

let dep_node = tcx.codegen_unit(cgu_name).codegen_dep_node(tcx);
Expand Down

0 comments on commit 8ac1699

Please sign in to comment.