From cc3488bba021b3c7e3891efc3d81147894f64f7a Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Wed, 20 Aug 2025 14:42:25 -0300 Subject: [PATCH] print path in stats for memory IO --- simulator/runner/memory/io.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/simulator/runner/memory/io.rs b/simulator/runner/memory/io.rs index e6ac7075e..e2b9f038c 100644 --- a/simulator/runner/memory/io.rs +++ b/simulator/runner/memory/io.rs @@ -186,8 +186,12 @@ impl SimIO for MemorySimIO { fn print_stats(&self) { tracing::info!("run_once faults: {}", self.nr_run_once_faults.get()); - for file in self.files.borrow().values() { - tracing::info!("\n===========================\n{}", file.stats_table()); + for (path, file) in self.files.borrow().iter() { + tracing::info!( + "\n===========================\n\nPath: {}\n{}", + path, + file.stats_table() + ); } }