Tests: the group bound host test at the 4 ms bound; api_signatures: the three piece Metrics

Metrics gains cuts, pieces_passed and shared_holds (fields added; a consumer that builds Metrics
with a struct literal breaks, as for every new counter).
This commit is contained in:
Anees Iqbal committed 2026-11-22 11:11:23 -08:00
1 parent 56cdcb7075
commit 929718d58f
2 files changed
+6 -6

No files matched your search

@@ -87,12 +87,9 @@ fn a_stage_span_lands_in_its_power_of_two_bucket() {
#[test]
fn a_command_buffer_joins_a_group_only_within_the_bound_tested_again_at_the_send() {
let ms = 1_000_000;
assert!(joins(10 * ms, 1, Some(ms)), "within the bound");
assert!(joins(10 * ms, 1, Some(GROUP_RUN - 10 * ms)), "at the bound");
assert!(
!joins(10 * ms, 1, Some(GROUP_RUN - 10 * ms + 1)),
"past it: alone"
);
assert!(joins(ms, 1, Some(ms)), "within the bound");
assert!(joins(ms, 1, Some(GROUP_RUN - ms)), "at the bound");
assert!(!joins(ms, 1, Some(GROUP_RUN - ms + 1)), "past it: alone");
assert!(!joins(0, 0, None), "an unknown run: alone");
assert!(
!joins(u64::MAX, 1, Some(1)),
@@ -1398,6 +1398,7 @@ field metal2vulkan-runtime::Metrics.consumer_allocation_max_nanos pub consumer_a
field metal2vulkan-runtime::Metrics.consumer_allocation_nanos pub consumer_allocation_nanos: u64
field metal2vulkan-runtime::Metrics.consumer_allocations pub consumer_allocations: u64
field metal2vulkan-runtime::Metrics.creations_before_seed pub creations_before_seed: u64
field metal2vulkan-runtime::Metrics.cuts pub cuts: u64
field metal2vulkan-runtime::Metrics.dispatches_without_effects pub dispatches_without_effects: u64
field metal2vulkan-runtime::Metrics.emulated_simdgroup_dispatches pub emulated_simdgroup_dispatches: u64
field metal2vulkan-runtime::Metrics.event_holds pub event_holds: [u64; STAGE_BUCKETS]
@@ -1491,6 +1492,7 @@ field metal2vulkan-runtime::Metrics.over_copy_bytes_surface pub over_copy_bytes_
field metal2vulkan-runtime::Metrics.overlapping_copies_refused pub overlapping_copies_refused: u64
field metal2vulkan-runtime::Metrics.partial_variant_whole_grids pub partial_variant_whole_grids: u64
field metal2vulkan-runtime::Metrics.passes pub passes: u64
field metal2vulkan-runtime::Metrics.pieces_passed pub pieces_passed: u64
field metal2vulkan-runtime::Metrics.pipeline_cache_lock_wait_max_nanos pub pipeline_cache_lock_wait_max_nanos: u64
field metal2vulkan-runtime::Metrics.pipeline_cache_lock_wait_nanos pub pipeline_cache_lock_wait_nanos: u64
field metal2vulkan-runtime::Metrics.pipeline_cache_lock_waits pub pipeline_cache_lock_waits: u64
@@ -1527,6 +1529,7 @@ field metal2vulkan-runtime::Metrics.sampler_element_writes pub sampler_element_w
field metal2vulkan-runtime::Metrics.scheduled_to_gpu_start pub scheduled_to_gpu_start: [u64; STAGE_BUCKETS]
field metal2vulkan-runtime::Metrics.scheduled_to_gpu_start_behind_nanos pub scheduled_to_gpu_start_behind_nanos: u64
field metal2vulkan-runtime::Metrics.scheduled_to_gpu_start_nanos pub scheduled_to_gpu_start_nanos: u64
field metal2vulkan-runtime::Metrics.shared_holds pub shared_holds: u64
field metal2vulkan-runtime::Metrics.shared_long_reuses pub shared_long_reuses: u64
field metal2vulkan-runtime::Metrics.shared_remade_after_frees pub shared_remade_after_frees: u64
field metal2vulkan-runtime::Metrics.shared_take_allocations pub shared_take_allocations: SiteAllocations
Can't render this file because it is too large.