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)
This commit is contained in:
1 parent
f7df249d55
commit
5d7bbdad43
1 file changed
+5
-2
@@ -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(),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user