From 5d7bbdad43eae45e5c2f2a0c38d110f3198d17cf Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 17:08:14 -0800 Subject: [PATCH] Window bench: print how often and how long the device's checks stepped aside Each variant's checks line names WorkCounts::check_steps_aside and check_aside_nanos beside the checks run and recalled, so the 5080 A/B of the step-aside shows the checks waited where the takes went on. Test-only. (cherry picked from commit a1370fb3140f35b7bb9cc9a6eb8134a1c62626e4) --- .../src/tests/host_ram_window_bench.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs b/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs index 195ca8bb2..af45b87bd 100644 --- a/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs +++ b/crates/metal2vulkan-runtime/src/tests/host_ram_window_bench.rs @@ -447,17 +447,20 @@ fn pipeline_work(from: &crate::WorkCounts, to: &crate::WorkCounts) -> String { } /// Which of `device`'s checks ran in this process and which it read from a record, from its -/// counts `to` (`WorkCounts`), and its submission checks' report. +/// counts `to` (`WorkCounts`), how often and how long their steps stepped aside for its other +/// work (`step_aside.rs`), and its submission checks' report. fn checks_line(device: &Device, to: &crate::WorkCounts) -> String { format!( "submission checks run {} recalled {}, queue-switch checks run {} recalled {}, in-place \ - checks run {} recalled {}; {}", + checks run {} recalled {}, their steps aside {} for {:.1} ms; {}", to.submit_checks_run, to.submit_checks_recalled, to.queue_switch_checks_run, to.queue_switch_checks_recalled, to.in_place_checks_run, to.in_place_checks_recalled, + to.check_steps_aside, + to.check_aside_nanos as f64 / 1e6, device.submit_check_report(), ) }