Skip to content

Commit 26f56c7

Browse files
committed
f timing
1 parent 1e8c927 commit 26f56c7

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

turbopack/crates/turbopack-core/src/module_graph/merged_modules.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
7373
included_modules = tracing::field::Empty
7474
);
7575

76-
let start = std::time::Instant::now();
77-
7876
let span = span_outer.clone();
7977
async move {
8078
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<
206204
drop(inner_span);
207205
let inner_span = tracing::info_span!("chunk group collection").entered();
208206

209-
let after_fixed_point = std::time::Instant::now();
210-
211207
span.record("visit_count", visit_count);
212208

213209
#[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
@@ -327,8 +323,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
327323
drop(inner_span);
328324
let inner_span = tracing::info_span!("exposed computation").entered();
329325

330-
let after_chunk_groups = std::time::Instant::now();
331-
332326
// We use list.pop() below, so reverse order using negation
333327
lists_reverse_indices
334328
.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<
524518
// Dedupe the lists
525519
let lists = lists.into_iter().collect::<FxHashSet<_>>();
526520

527-
let after_reconcile = std::time::Instant::now();
528-
529521
drop(inner_span);
530522
let inner_span = tracing::info_span!("merging");
531523
// Call MergeableModule impl to merge the modules.
@@ -613,23 +605,6 @@ pub async fn compute_merged_modules(module_graph: Vc<ModuleGraph>) -> Result<Vc<
613605
span.record("merged_groups", replacements.len());
614606
span.record("included_modules", included.len());
615607

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-
633608
Ok(MergedModuleInfo {
634609
replacements,
635610
replacements_to_original,

0 commit comments

Comments
 (0)