Harness: its gauges name what they hold, with level elements, timestamp pools and buffer set pools

named()'s doc said it held every count of an object kind the runtime keeps live; it held 15 of
them. It now says what it holds: the kinds a compute workload makes or reaches, and the render
contents and attachment views, which none makes; the kinds only draws, passes, surfaces, imports,
exports and indirect command buffers make are a replay's gauge records. It adds the three of
those kinds a compute workload reaches: level_elements (a texture's levels' storage elements),
timestamp_pools (the command buffers' GPU time queries) and buffer_set_pools (a dispatch's bound
buffers' descriptor sets). Each is recorded at the 100th and 200th runs and at device drop, as
the others are.

Verified: in the hand-over.
This commit is contained in:
Anees Iqbal committed 2026-12-02 09:29:20 -08:00
1 parent 8dd00ec58c
commit 0a7a446fa1
1 file changed
+12 -3
+12 -3
View File
@@ -898,13 +898,20 @@ impl crate::ComputeCommandEncoder<Device> for rt::ComputeCommandEncoder {
}
}
/// The gauges the harness reports, by name: every count of an object kind the runtime keeps
/// live, so the matrix's `@drop` check and its reading between the 100th and 200th runs cover
/// each kind. The byte and age gauges, which move with load, and the thread ids are left out.
/// The gauges the harness reports, by name, which the matrix's `@drop` check and its reading
/// between the 100th and 200th runs cover: the counts of the object kinds a compute workload
/// makes or reaches (buffers, textures and their levels' elements, samplers, pipeline states and
/// their compiled contents and variants, command buffers, their timestamp query pools and bound
/// buffers' descriptor set pools, set 1's slots, memory blocks and events), and the render
/// contents and attachment views, which none of its workloads makes. The kinds only draws,
/// passes, surfaces, imports, exports and indirect command buffers make are a replay's
/// (`metal2vulkan-validation`'s gauge records of a play). The byte and age gauges, which move with
/// load, and the thread ids are left out.
fn named(gauges: rt::Gauges) -> Vec<(&'static str, u64)> {
vec![
("buffers", gauges.buffers),
("textures", gauges.textures),
("level_elements", gauges.level_elements),
("samplers", gauges.samplers),
("lod_clamp_variants", gauges.lod_clamp_variants),
("pipelines", gauges.pipelines),
@@ -914,6 +921,8 @@ fn named(gauges: rt::Gauges) -> Vec<(&'static str, u64)> {
("render_contents", gauges.render_contents),
("attachment_views", gauges.attachment_views),
("command_buffers", gauges.command_buffers),
("timestamp_pools", gauges.timestamp_pools),
("buffer_set_pools", gauges.buffer_set_pools),
("descriptor_slots", gauges.descriptor_slots),
("blocks", gauges.blocks),
("events", gauges.events),