Skip to content

Commit

Permalink
remove printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 17, 2024
1 parent 20e5128 commit 9ed1846
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions crates/turbo-tasks-memory/src/memory_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,27 +146,6 @@ impl MemoryBackend {

let collected = gc_queue.run_gc(self);

let new_usage = turbo_tasks_malloc::TurboMalloc::memory_usage();

if new_usage > usage {
println!(
"GC allocated {} more MB {collected:?}",
(new_usage - usage) / 1024 / 1024
);
} else if new_usage < target {
println!(
"GC collected {} MB ({} MB below target) {collected:?}",
(usage - new_usage) / 1024 / 1024,
(target - new_usage) / 1024 / 1024
);
} else {
println!(
"GC collected {} MB ({} MB above target) {collected:?}",
(usage - new_usage) / 1024 / 1024,
(new_usage - target) / 1024 / 1024
);
}

// Collecting less than 100 tasks is not worth it
if !collected.map_or(false, |(_, count)| count > 100) {
return true;
Expand Down

0 comments on commit 9ed1846

Please sign in to comment.