The trail GPU-form tests print their command buffer's GPU time

This commit is contained in:
Anees Iqbal committed 2026-11-13 00:41:29 -08:00
1 parent d3c3d502f3
commit f57e036303
1 file changed
+6 -1
@@ -132,7 +132,12 @@ fn executed_through_range(
(CommandBufferStatus::Completed, None)
);
let forms = command_buffer.trail_form_texts();
eprintln!("TRAIL-GPU-FORMS {}: {forms:?}", device.name());
let gpu = command_buffer.gpu_end_time().unwrap() - command_buffer.gpu_start_time().unwrap();
eprintln!(
"TRAIL-GPU-FORMS {}: GPU {:.3} ms; {forms:?}",
device.name(),
gpu * 1e3
);
if forms.is_empty() && device.work_counts().gpu_form_commands == 0 {
eprintln!("TRAIL-GPU-FORMS: the device records no execution in its GPU form");
}