about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-05-22 16:58:31 +0200
committerGitHub <noreply@github.com>2020-05-22 16:58:31 +0200
commita116e7b02fa407e06303e5118da9bf7ae1caf493 (patch)
treed4bdb5d74bdeefa7df1fb23a2f03f39926cd8a11
parentf7ed13b6a50cb7994dc6fa2f967219a9c7a714ee (diff)
parent8ac1699ea15bf8d6d9bcecec4c340c88cf20c0da (diff)
downloadrust-a116e7b02fa407e06303e5118da9bf7ae1caf493.tar.gz
rust-a116e7b02fa407e06303e5118da9bf7ae1caf493.zip
Rollup merge of #72376 - wesleywiser:record_cgu_name, r=Mark-Simulacrum
[self-profling] Record the cgu name when doing codegen for a module
-rw-r--r--src/librustc_codegen_llvm/base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/base.rs b/src/librustc_codegen_llvm/base.rs
index e5f73473b72..3e17a51528e 100644
--- a/src/librustc_codegen_llvm/base.rs
+++ b/src/librustc_codegen_llvm/base.rs
@@ -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);