@@ -269,7 +269,7 @@ fn module_codegen(
269269 ) ,
270270) -> OngoingModuleCodegen {
271271 let ( cgu_name, mut cx, mut module, codegened_functions) =
272- tcx. prof . verbose_generic_activity_with_arg ( "codegen cgu" , cgu_name. as_str ( ) ) . run ( || {
272+ tcx. prof . generic_activity_with_arg ( "codegen cgu" , cgu_name. as_str ( ) ) . run ( || {
273273 let cgu = tcx. codegen_unit ( cgu_name) ;
274274 let mono_items = cgu. items_in_deterministic_order ( tcx) ;
275275
@@ -322,35 +322,24 @@ fn module_codegen(
322322 } ) ;
323323
324324 OngoingModuleCodegen :: Async ( std:: thread:: spawn ( move || {
325- cx. profiler . clone ( ) . verbose_generic_activity_with_arg ( "compile functions" , & * cgu_name) . run (
326- || {
327- cranelift_codegen:: timing:: set_thread_profiler ( Box :: new ( super :: MeasuremeProfiler (
328- cx. profiler . clone ( ) ,
329- ) ) ) ;
330-
331- let mut cached_context = Context :: new ( ) ;
332- for codegened_func in codegened_functions {
333- crate :: base:: compile_fn (
334- & mut cx,
335- & mut cached_context,
336- & mut module,
337- codegened_func,
338- ) ;
339- }
340- } ,
341- ) ;
325+ cx. profiler . clone ( ) . generic_activity_with_arg ( "compile functions" , & * cgu_name) . run ( || {
326+ cranelift_codegen:: timing:: set_thread_profiler ( Box :: new ( super :: MeasuremeProfiler (
327+ cx. profiler . clone ( ) ,
328+ ) ) ) ;
329+
330+ let mut cached_context = Context :: new ( ) ;
331+ for codegened_func in codegened_functions {
332+ crate :: base:: compile_fn ( & mut cx, & mut cached_context, & mut module, codegened_func) ;
333+ }
334+ } ) ;
342335
343- let global_asm_object_file = cx
344- . profiler
345- . verbose_generic_activity_with_arg ( "compile assembly" , & * cgu_name)
346- . run ( || {
336+ let global_asm_object_file =
337+ cx. profiler . generic_activity_with_arg ( "compile assembly" , & * cgu_name) . run ( || {
347338 crate :: global_asm:: compile_global_asm ( & global_asm_config, & cgu_name, & cx. global_asm )
348339 } ) ?;
349340
350- let codegen_result = cx
351- . profiler
352- . verbose_generic_activity_with_arg ( "write object file" , & * cgu_name)
353- . run ( || {
341+ let codegen_result =
342+ cx. profiler . generic_activity_with_arg ( "write object file" , & * cgu_name) . run ( || {
354343 emit_cgu (
355344 & global_asm_config. output_filenames ,
356345 & cx. profiler ,
0 commit comments