We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
codegen_module
1 parent b6a7b5a commit 1906b7eCopy full SHA for 1906b7e
1 file changed
compiler/rustc_codegen_llvm/src/base.rs
@@ -74,10 +74,11 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen
74
75
fn module_codegen(tcx: TyCtxt<'_>, cgu_name: Symbol) -> ModuleCodegen<ModuleLlvm> {
76
let cgu = tcx.codegen_unit(cgu_name);
77
- let _prof_timer = tcx.prof.generic_activity_with_args(
78
- "codegen_module",
79
- &[cgu_name.to_string(), cgu.size_estimate().to_string()],
80
- );
+ let _prof_timer =
+ tcx.prof.generic_activity_with_arg_recorder("codegen_module", |recorder| {
+ recorder.record_arg(cgu_name.to_string());
+ recorder.record_arg(cgu.size_estimate().to_string());
81
+ });
82
// Instantiate monomorphizations without filling out definitions yet...
83
let llvm_module = ModuleLlvm::new(tcx, cgu_name.as_str());
84
{
0 commit comments