Skip to content

Commit 84288c7

Browse files
committed
Disable the persistent caching timing messages
1 parent 69e3e62 commit 84288c7

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
@@ -1182,13 +1182,15 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
11821182
}
11831183
}
11841184

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

11931195
Some((snapshot_time, new_items))
11941196
}

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)