File tree 1 file changed +5
-4
lines changed
compiler/rustc_codegen_llvm/src
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen
74
74
75
75
fn module_codegen ( tcx : TyCtxt < ' _ > , cgu_name : Symbol ) -> ModuleCodegen < ModuleLlvm > {
76
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
- ) ;
77
+ let _prof_timer =
78
+ tcx. prof . generic_activity_with_arg_recorder ( "codegen_module" , |recorder| {
79
+ recorder. record_arg ( cgu_name. to_string ( ) ) ;
80
+ recorder. record_arg ( cgu. size_estimate ( ) . to_string ( ) ) ;
81
+ } ) ;
81
82
// Instantiate monomorphizations without filling out definitions yet...
82
83
let llvm_module = ModuleLlvm :: new ( tcx, cgu_name. as_str ( ) ) ;
83
84
{
You can’t perform that action at this time.
0 commit comments