Adds `scripts/maps-probe/maps-probe.sh`, carrying the same (outdir, seconds)
interface as the sustained-animation and window-drag probes so it drops into
`perf-ab.sh` via `--probe`.
Component: host-side driving only; no device or QEMU code is touched.
Why. The two existing sustained instruments measure a Safari canvas repainting
itself and the window server translating an opaque rectangle. Maps is neither:
it is a full-screen client drawing a tiled vector scene through its own Metal
pipelines, and pan and zoom are the two interactions that redraw the entire
scanout per frame instead of damaging a corner of it. `AGENTS.md` requires a
number to name the probe it came from because two probes rank this device's
costs in a different order; Maps is a third such population and nothing in the
tree could measure it. The `sustained-animation-probe.sh` header has referred
to a `maps.sh` for some time -- no such file was ever in the tree.
Behavior. Opens Maps over ssh, full-screens it with the system Enter Full
Screen binding, parks the pointer, marks the fail log, then drives four phases
back to back for the whole window: a closed rectangular pan circuit, a 40-tick
wheel zoom in, a zigzag pan, and a 40-tick wheel zoom out. The circuit is
closed on both the position and the zoom axis so every round starts from the
same scale; without the closing zoom-out the probe walks to a zoom limit and
the back half of a long window measures a clamped map. The drive loop never
sleeps, because a probe built from discrete interactions spends its wall clock
inside guest animations at zero draws and ranks the device's phases wrongly.
Each pan is a single `qmp.py drag` over a multi-point path, so a phase is one
process and one QMP connection for seconds of continuous motion rather than a
process spawn between every pair of points. Zoom uses `qmp.py wheel`, whose
ticks go over one connection dt apart, for the same reason.
Maps needs Apple's tile servers, which the rails reach only through user-net
NAT, so the probe records a tile-server reachability verdict in the outdir
rather than failing on it: a tileless Maps still exercises the same client
pipelines and is a valid perf population, but a correctness reading from one
would be wrong and the outdir has to say which was measured. Host screenshots
are taken before and after the scored window, outside it.
Verified: `bash -n` only. Not yet run against a booted guest -- no live-VM
result is claimed here, and the phase mix is deliberately fixed so that the
first boot to use it is comparable with later ones.
Co-Authored-By: Claude <noreply@anthropic.com>