Coldwave

Profiler: flame graphs, exact A/B and a step played again#

Coming next. This feature is not in frost yet. The page is written ahead so you can plan for it; until it ships, nothing here works in the frost you have.

The profiler's first part (the graphics card's own time per pass, a frame's whole cost, spikes kept with their cause, profile.summary) is built and comes with the next release: Profiling describes it. This page is what is being built after it.

What it adds#

  • Flame graphs, always on. Where a script's time goes, sampled continuously at a small cost and kept beside the recording as a profile file, so two runs or two builds can be compared as a diff of their flame graphs.
  • An exact A/B. The same recorded steps played on two builds or two settings, interleaved and paired frame by frame. The world is the same at every step, so there is no gameplay noise to average away: what differs is the engine or the machine.
  • Budgets per game. Time budgets kept beside the game, per kind of scene, that frost bench --check holds.
  • A slow step, played again. A recorded game's steps are exact, so a spike's step can be run again twenty times. Slow every time: the game's work, and it can be fixed. Fast: it was not the game, and the answer says so instead of blaming a script.
  • Then: a bisect that names the commit that made a game slower, export to the trace viewers people already use (Perfetto, pprof), an overlay in frost dev, and numbers from the web and from phones, with a phone's heat over a long run.

For agents#

CommandAnswers
profile.flameWhere the time went, as a flame graph, or the difference between two
profile.abTwo builds or settings on the same steps: what changed beyond noise
profile.replayPlay one step again and say whether it is slow every time

These are what agentic optimization is built on.

What it will not do#

  • Send anything anywhere: numbers stay on your machine or travel over the cable you already use. No telemetry.
  • Cost an exported game anything: a shipped game keeps no profile unless you build it to.
  • Put time into a checksum: time differs from run to run, and a recorded game stays exact.