@@ -73,8 +73,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
73
73
included_modules = tracing:: field:: Empty
74
74
) ;
75
75
76
- let start = std:: time:: Instant :: now ( ) ;
77
-
78
76
let span = span_outer. clone ( ) ;
79
77
async move {
80
78
let async_module_info = module_graph. async_module_info ( ) . await ?;
@@ -206,8 +204,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
206
204
drop ( inner_span) ;
207
205
let inner_span = tracing:: info_span!( "chunk group collection" ) . entered ( ) ;
208
206
209
- let after_fixed_point = std:: time:: Instant :: now ( ) ;
210
-
211
207
span. record ( "visit_count" , visit_count) ;
212
208
213
209
#[ derive( Debug , PartialEq , Eq , Hash , PartialOrd , Ord ) ]
@@ -327,8 +323,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
327
323
drop ( inner_span) ;
328
324
let inner_span = tracing:: info_span!( "exposed computation" ) . entered ( ) ;
329
325
330
- let after_chunk_groups = std:: time:: Instant :: now ( ) ;
331
-
332
326
// We use list.pop() below, so reverse order using negation
333
327
lists_reverse_indices
334
328
. sort_by_cached_key ( |_, b| b. iter ( ) . map ( |o| o. entry ) . min ( ) . map ( |v| -( v as i64 ) ) ) ;
@@ -524,8 +518,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
524
518
// Dedupe the lists
525
519
let lists = lists. into_iter ( ) . collect :: < FxHashSet < _ > > ( ) ;
526
520
527
- let after_reconcile = std:: time:: Instant :: now ( ) ;
528
-
529
521
drop ( inner_span) ;
530
522
let inner_span = tracing:: info_span!( "merging" ) ;
531
523
// Call MergeableModule impl to merge the modules.
@@ -613,23 +605,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
613
605
span. record ( "merged_groups" , replacements. len ( ) ) ;
614
606
span. record ( "included_modules" , included. len ( ) ) ;
615
607
616
- let end = std:: time:: Instant :: now ( ) ;
617
-
618
- println ! (
619
- "Merged modules groups in {} ms (fixed_point: {}, chunk_groups: {}, reconcile: {}), \
620
- {} modules, {} visits",
621
- after_fixed_point. duration_since( start) . as_millis( ) ,
622
- after_chunk_groups
623
- . duration_since( after_fixed_point)
624
- . as_millis( ) ,
625
- after_reconcile
626
- . duration_since( after_chunk_groups)
627
- . as_millis( ) ,
628
- end. duration_since( start) . as_millis( ) ,
629
- module_count,
630
- visit_count
631
- ) ;
632
-
633
608
Ok ( MergedModuleInfo {
634
609
replacements,
635
610
replacements_to_original,
0 commit comments