[self-profling] Record the cgu name when doing codegen for a module

This commit is contained in:
Wesley Wiser 2020-05-20 07:40:42 -04:00
parent 0862458dad
commit 8ac1699ea1

View File

@ -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);