Skip to content

Commit 03ee747

Browse files
committed
fix: always print memory mapping logs
1 parent 66c66d7 commit 03ee747

File tree

1 file changed

+7
-9
lines changed
  • src/run/runner/wall_time/perf

1 file changed

+7
-9
lines changed

src/run/runner/wall_time/perf/mod.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,13 @@ impl PerfRunner {
215215
procfs::process::Process::new(pid as _).expect("Failed to find benchmark process");
216216
let exe_maps = bench_proc.maps().expect("Failed to read /proc/{pid}/maps");
217217

218-
if is_codspeed_debug_enabled() {
219-
debug!("Process memory mappings for PID {pid}:");
220-
for map in exe_maps.iter().sorted_by_key(|m| m.address.0) {
221-
let (base_addr, end_addr) = map.address;
222-
debug!(
223-
" {:016x}-{:016x} {:08x} {:?} {:?} ",
224-
base_addr, end_addr, map.offset, map.pathname, map.perms,
225-
);
226-
}
218+
debug!("Process memory mappings for PID {pid}:");
219+
for map in exe_maps.iter().sorted_by_key(|m| m.address.0) {
220+
let (base_addr, end_addr) = map.address;
221+
debug!(
222+
" {:016x}-{:016x} {:08x} {:?} {:?} ",
223+
base_addr, end_addr, map.offset, map.pathname, map.perms,
224+
);
227225
}
228226

229227
for map in &exe_maps {

0 commit comments

Comments
 (0)