From fa7e22625ca83494414cb3d6493afd13428e623d Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Tue, 3 Dec 2024 03:02:28 +0000 Subject: [PATCH] Improve logging after each GC for count_live_bytes_in_gc --- src/scheduler/scheduler.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scheduler/scheduler.rs b/src/scheduler/scheduler.rs index 98c470ed6d..272f8be0ed 100644 --- a/src/scheduler/scheduler.rs +++ b/src/scheduler/scheduler.rs @@ -554,14 +554,12 @@ impl GCWorkScheduler { 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, ); } }