Skip to content

Commit 009b032

Browse files
committed
Disable the persistent caching timing messages
1 parent 3dcbb84 commit 009b032

File tree

2 files changed

+23
-13
lines changed
  • turbopack/crates/turbo-tasks-backend/src

2 files changed

+23
-13
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,13 +1185,15 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
11851185
}
11861186
}
11871187

1188-
if new_items {
1189-
let elapsed = start.elapsed();
1190-
turbo_tasks().send_compilation_event(Arc::new(TimingEvent::new(
1191-
"Finished writing to persistent cache".to_string(),
1192-
elapsed,
1193-
)));
1194-
}
1188+
// TODO(lukesandberg): re-enable this event but change next.js to only send it to the
1189+
// trace-build file
1190+
// if new_items {
1191+
// let elapsed = start.elapsed();
1192+
// turbo_tasks().send_compilation_event(Arc::new(TimingEvent::new(
1193+
// "Finished writing to persistent cache".to_string(),
1194+
// elapsed,
1195+
// )));
1196+
// }
11951197

11961198
Some((snapshot_time, new_items))
11971199
}

turbopack/crates/turbo-tasks-backend/src/database/turbo/mod.rs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
use std::{cmp::max, path::PathBuf, sync::Arc, thread::available_parallelism, time::Instant};
1+
use std::{
2+
cmp::max,
3+
path::PathBuf,
4+
sync::Arc,
5+
thread::available_parallelism,
6+
time::{Duration, Instant},
7+
};
28

39
use anyhow::{Ok, Result};
410
use parking_lot::Mutex;
@@ -133,11 +139,13 @@ fn do_compact(
133139
max_merge_segment_count,
134140
..COMPACT_CONFIG
135141
})?;
136-
if ran {
137-
let elapsed = start.elapsed();
138-
turbo_tasks()
139-
.send_compilation_event(Arc::new(TimingEvent::new(message.to_string(), elapsed)));
140-
}
142+
// TODO(lukesandberg): re-enable this event but change next.js to only send it to the
143+
// trace-build file
144+
//if ran {
145+
// let elapsed = start.elapsed();
146+
// turbo_tasks()
147+
// .send_compilation_event(Arc::new(TimingEvent::new(message.to_string(), elapsed)));
148+
// }
141149
Ok(())
142150
}
143151

0 commit comments

Comments
 (0)