Files
metal2vulkan/crates
Anees Iqbal 67d9be4cd6 Cost runs name a release build's venue apart from the debug binary's records
What: cost::venue names the venue a cost run is held to and writes: the device's name in a
build with debug assertions, '<device>, release build' otherwise. replay's cost gate and
cost_on_under take it. A release run is so Unmeasured against the committed records (no record
of its venue), and a release --write keeps a record of its own beside the debug one. The
README's cost section says so.

Why: the records did not say which build measured them, and the two builds' counts differ: a
debug build takes the whole check at a kept draw's first and every second rebound hit
(render/draw_again.rs, render/draw_again/rebound.rs), so a release replay of
point-viewport-coverage read 3 rebinds against the debug record's 1 and failed as Over (the
11-07 M3 'regression' that was the profile). Every committed record was measured by the debug
binary (each stack's rebless runs target/debug/conformance cost --write), so the debug name
keeps them valid unchanged and no recording file moves.

Verified: a_release_build_s_cost_runs_name_their_venue_apart (both names, and a debug record
judging the debug venue Over and the release venue Unmeasured). Runs on Linux follow.

(cherry picked from commit e455eed9ac8894efb6ac9609d8fd24058874b124)
2026-11-10 05:16:04 -08:00
..