perf_gate
Checks a Metal GPU recording against FPS, stutter, hitch, GPU-ms and memory budgets, returning pass or fail per limit and failing budgets when data is missing.
Instructions
Checks a recording against budgets and says pass or fail: a floor for FPS and the 1% low, a ceiling for the stutter rate, the p95 GPU ms per frame, the hitch count and the peak Metal MiB. Give at least one. A number the recording lacks fails its budget (value null): a gate must not pass on missing data. Returns each budget with its limit, the value and whether it held. Use it as a bar a change must clear, where perf_check judges against equal runs. skip_s leaves out the first seconds of the recording (the start-up), as perf_compare does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | a run name from perf_runs | |
| skip_s | No | seconds to leave out at the start of each recording, where shaders compile and resources load; 0 (default) keeps all. The GPU numbers, hitches and Metal memory are recomputed without them | |
| fps_min | No | the FPS must be at least this | |
| hitches_max | No | the number of hitches at most this | |
| metal_mib_max | No | the peak Metal memory in MiB at most this | |
| gpu_ms_p95_max | No | the p95 GPU ms per frame at most this | |
| fps_1pct_low_min | No | the 1% low FPS must be at least this | |
| stutter_rate_pct_max | No | the share of stutter frames, in %, at most this |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||