diff --git a/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs b/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs index 924090fbc..22c5eb08c 100644 --- a/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs +++ b/crates/metal2vulkan-validation/src/replay/new_runtime/mod.rs @@ -2699,6 +2699,7 @@ impl Backend for NewRuntime { ("upload_waits", metrics.upload_waits), ("staging_sleeps", metrics.staging_sleeps), ("synchronizations", metrics.synchronizations), + ("commit_lock_wait_nanos", metrics.commit_lock_wait_nanos), ("managed_bytes_captured", metrics.managed_bytes_captured), ("stamps_not_available", metrics.stamps_not_available), ("waits_behind_counter", metrics.waits_behind_counter), @@ -2790,6 +2791,9 @@ impl Backend for NewRuntime { format!("pipeline {at} wall_nanos={} kernel={kernel}", made.nanos) }); let mut lines: Vec = lines.collect(); + // A maximum since the device was made: it does not sum, so it is not a frame's counter. + let longest = self.device.counters().metrics().commit_lock_wait_max_nanos; + lines.push(format!("commit lock wait longest {longest} ns")); if let Some(copies) = self.managed { let from = match self.identity { true => "the stream's device identity", diff --git a/docs/REPLAY-STREAM.md b/docs/REPLAY-STREAM.md index 1e8a151a6..c56adc900 100644 --- a/docs/REPLAY-STREAM.md +++ b/docs/REPLAY-STREAM.md @@ -1046,7 +1046,10 @@ calls played: where the play stopped, the stopping call is the next), the new runtime's backend's `pipeline I wall_nanos=N kernel=new|again` for each compute pipeline state it made, in order (the making's wall time, and whether no state of another specialization of the kernel, a library's -function by name, was made before), its `skipped render states GAP N, the first #ID: WHY` for each +function by name, was made before), its `commit lock wait longest N ns` (the runtime's +`commit_lock_wait_max_nanos`: the longest wait of a commit for the runtime's work lock in the play; +the executed counter `commit_lock_wait_nanos` gives the waits by frame, summed), its +`skipped render states GAP N, the first #ID: WHY` for each typed gap a render pipeline state met (`GAP` the runtime's gap as Rust prints it for debugging, such as `RenderPipeline { kind: DepthAttachment }`, or `Translation(KIND)` where the translator refused it: `Unsupported(FEATURE)` with the refused feature as Rust prints it for debugging, such as