Validation: a play's gauges at frames 100 and 200 go out as the matrix's records, every kind on its end lines
What: - The runtime backend's end lines (`Backend::live`) carry every count of an object kind the runtime keeps live: samplers, LOD clamp variants, level elements, kernel variants and entries, render contents, attachment views, descriptor slots, device samplers, shadows, resolve images, plane stand-ins, buffer set pools, surface buffers, indirect command buffers, releases waiting and handles out join them, and the pipeline cache's bytes. - At the ends of frames 100 and 200 (GAUGE_FRAMES) the player reads them once they hold still (Backend::settled_live): the runtime backend reads them every 10 ms until no release waits and two reads in a row agree on every recorded kind, for at most 2 s, a wait no frame's time holds. What the program released goes on the runtime's block-maker and reaper threads after the work before it retired, so a read straight after the frame's waits could differ between two plays. - command-replay prints, where the play ended frame 200 and skipped nothing by then, `M2V-MATRIX gauge replay-rt/STEM/GAUGE@100` and `@200` for each kind of GAUGED (gauge_records). scripts/matrix/results.py judges them as it judges the harness's: equal at 100 and 200, blocks no higher at 200. - Left out, and why: handles_out (1 while the play holds the device), releases_waiting (lowered by the block-maker thread whenever it runs), private_units (a layout of memory that follows the bytes the program holds), and every byte and age gauge, which follows the program's content and the pool's idle clock: the pipeline cache's data (bound 128 MiB), the translator's entries' bytes (bound 64 MiB), the staging bytes, the pool's allocated, idle, reserved, reused, taken and block bytes, and the shadows', resolve images' and stand-ins' bytes, whose counts are recorded. Why: the matrix's leak rule (live gauges per resource kind flat between iterations 100 and 200) reached only the harness's compute workloads. The kinds only draws and passes make (render contents, attachment views, shadows, resolve images, stand-ins, the samplers draws reach) had no such check, and a play's end lines lacked 17 of the kinds. Docs: REPLAY-STREAM.md section 10 (the end line's gauges, the settled read, the records), VALIDATION.md's gauge row, command-replay's module doc. Tests: replay::tests the_player_settles_the_gauges_at_frames_100_and_200_alone and the_gauge_records_are_the_counted_kinds_at_frames_100_and_200; replay::rt_replay the_end_lines_carry_every_gauge_the_gauge_records_carry (device); test_results.py test_a_plays_gauges_at_frames_100_and_200_are_held_flat_as_the_harness_s. Verified: in the hand-over.
This commit is contained in:
1 parent
da37e9e5df
commit
f4eb47d792
10 files changed
+287
-27
No files matched your search
@@ -172,6 +172,13 @@ class RuleTests(unittest.TestCase):
|
||||
"gauge harness-new/creates/device/blocks: 1 live at device drop",
|
||||
"gauge harness-new/long_4cb/blocks: 8 at iteration 100, 9 at 200"])
|
||||
|
||||
def test_a_plays_gauges_at_frames_100_and_200_are_held_flat_as_the_harness_s(self):
|
||||
play = {"replay-rt/s/textures@100": 40, "replay-rt/s/textures@200": 41,
|
||||
"replay-rt/s/blocks@100": 9, "replay-rt/s/blocks@200": 8,
|
||||
"replay-rt/s/render_contents@100": 5, "replay-rt/s/render_contents@200": 5}
|
||||
self.assertEqual(self.problems(recs(gauge=play), None),
|
||||
["gauge replay-rt/s/textures: 40 at iteration 100, 41 at 200"])
|
||||
|
||||
def test_a_failed_suite_fails_the_leg(self):
|
||||
leg = leg_of(recs(), code=100)
|
||||
self.assertEqual(results.leg_problems(leg, recs(), None), ["suite rt exited 100"])
|
||||
|
||||
Reference in new issue
Block a user