A timing verdict between two plays of one stream (old against new, or two commits) needs both
plays by a player that serves every read class the stream has, equal player-side counts at the
judged frame and equal digests there. Nothing in the tree checked any of it: the rows were made
by hand from two reports.
The report gains a `managed reads on two copies` line. Counted from the stream's calls alone,
alike on every runtime and device, it gives the GPU's reads of Managed bytes that no
announcement took to the GPU copy, in two kinds apart:
- made-with reads, of the bytes a buffer was made with, which the player serves on both
runtimes since d88af7befe (the line says "served");
- stale reads, of bytes an m2v.write put in with no didModifyRange:, which Metal leaves undefined
and both runtimes play by one rule ("played as recorded").
With no identity record, a no-copy buffer's writes before its first use are served
(fb183b48f7) and not counted. A one-copy identity record counts none. The count lives in
replay/stale.rs and is fed from the player's make, write, commit and release.
Each check line now names its frame (`check #ID frame F SHA ...`), so a digest can be matched to
the frame it judges.
`command-replay compare-plays --a REPORT --b REPORT [--frame F]` (replay/compare.rs) reads two
reports and prints:
- whether each player serves every read class (it has the managed reads line);
- the frames whose player-side counts differ: stream calls, draws and dispatches, and every
executed skip and refusal count;
- the frames whose digests differ, naming the stale reads as the first suspect on a two-copy
play;
- with --frame, the verdict (GPU-busy and wall time, "b is P% faster|slower than a") or why there
is none.
docs/REPLAY-STREAM.md states the verdict rule as the planner ruled it. Stale reads bar no
verdict.
Tests (replay::tests):
- a_two_copy_stream_s_managed_reads_are_counted_by_kind
- a_no_copy_buffer_s_writes_before_first_use_are_not_stale_with_no_identity
- two_plays_compare_for_a_verdict_only_where_counts_and_digests_agree