Frame Lab: Repeatable Performance Benchmarks and Game Charts
README.md
benchKit.viewer
Opens any saved benchmark run on any device and shows everything it kept, as charts drawn with chartKit in the world's chart style. The run picker lists your runs, every other player's runs in this world (shared through the world's roster) and the reference runs. Tabs: Overview (headline numbers, the frame-time graph over the whole run with the camera path's segments, phases, the budget line and hitches, a histogram, the recording cost and the leak verdict), Frames (CPU, GPU and wait for a core per frame, a heat strip, counts), GPU (stacked passes over time, mean per pass), CPU (stacked by engine system and by script, script time by module), Flame graphs (engine and scripts, upright or icicle), Memory (app memory, script VMs, GPU by kind, a breakdown ring, caches, GC pauses, allocation rate, streaming), Loading (the load and shader-compile timeline), Export (every file with a Save button) and Compare (two runs side by side: what got slower or bigger). Below 760 points of width it lays out in one column for a phone or a tablet held upright. Each player's viewer is their own screen.
local Viewer = require("benchKit.viewer")
Viewer.open() -- the newest run
Viewer.open(id, { tab = "memory" })
Viewer.compare(idA, idB) -- A is the baseline