#!/usr/bin/env python3 """Summarize engine comparison runs as Markdown tables. Usage: analyze.py RUNDIR... (each RUNDIR is a run.sh outdir: samples.csv, check-*.json; its name is the engine) Per site (rows whose mark is the site's label): PSS at the end of the settle and its growth over the previous step, peak CPU, mean CPU over the last 10 s of the settle (the page has settled), the tree's own GPU (gfx engine busy %, mean over the settle) and the tree's VRAM at the end. Then totals: every tab open (end of the last site), the 60 s idle (mean CPU and GPU of the idle phase, PSS at its end) and the background with no browser (baseline). The check columns come from check-