Skip to content

Commit

Permalink
Improve logging after each GC for count_live_bytes_in_gc
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Dec 3, 2024
1 parent 220b157 commit fa7e226
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/scheduler/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,14 +554,12 @@ impl<VM: VMBinding> GCWorkScheduler<VM> {
probe!(mmtk, gc_end);

if *mmtk.get_options().count_live_bytes_in_gc {
info!("Live bytes in spaces:");
for (space_name, &stats) in mmtk.state.live_bytes_in_last_gc.borrow().iter() {
info!(
"{} = {:.1}% ({} bytes) of {} used pages",
"{} = {} pages ({:.1}% live)",
space_name,
stats.live_bytes as f64 * 100.0 / stats.used_bytes as f64,
stats.live_bytes,
stats.used_pages,
stats.live_bytes as f64 * 100.0 / stats.used_bytes as f64,
);
}
}
Expand Down

0 comments on commit fa7e226

Please sign in to comment.