From 4b516662a98e9c6d8ea53b2c07f10969a5ce8b85 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 23 Nov 2026 00:46:55 -0800 Subject: [PATCH] Runtime: the kernel_variants gauge counts what work held at its module's last make Its doc said the variants past the 64 a module keeps are those work not yet retired holds. A module evicts the idle ones at its next make, so between a command buffer's retirement and that make the gauge also counts the ones that command buffer held. Doc only. --- crates/metal2vulkan-runtime/src/counters.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/counters.rs b/crates/metal2vulkan-runtime/src/counters.rs index e9981f8be..63b5ac8f2 100644 --- a/crates/metal2vulkan-runtime/src/counters.rs +++ b/crates/metal2vulkan-runtime/src/counters.rs @@ -3023,8 +3023,9 @@ pub struct Gauges { /// the device's map of kernels holds it. pub kernels: u64, /// `VkPipeline`s of compiled kernels' modules, each of one workgroup size, threadgroup memory - /// lengths, imageblock size and tiles: the 8 each module made first, at most 56 more it keeps - /// for later dispatches, and those past them that command buffers not yet retired hold. + /// lengths, imageblock size and tiles: the 8 each module made first, the 56 dispatched last + /// past them, which it keeps for later dispatches, and those past them that command buffers + /// not yet retired held at its last make. pub kernel_variants: u64, /// Entries of the device's map of compiled contents, compute and render, which holds at most /// 1,024 and forgets the least recently used past them.