Skip to content

Commit

Permalink
Rollup merge of #72376 - wesleywiser:record_cgu_name, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
[self-profling] Record the cgu name when doing codegen for a module
  • Loading branch information
RalfJung authored May 22, 2020
2 parents f7ed13b + 8ac1699 commit a116e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/base.rs
Original file line number Diff line number Diff line change
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 a116e7b

Please sign in to comment.