Class in reactor_core.js
ReactorProfiler
8 public functions in 2 groups · show internal (_) functions
The in-game frame profiler (F10 to start/stop). While recording it times
each frame's phases and keeps a detailed record of every frame over
frameThreshold ms, plus between-frame stalls over gapThreshold ms
(main-thread work outside the game loop: GC, plugin timers, decodes).
Stopping writes save/reactor-profile.json and logs a console summary.
Costs nothing until first activated.
function ReactorProfiler()
Quick Reference
Other 5
| frameBegin() | Frame begin. |
| phase() | Phase. |
| frameEnd() | Frame end. |
| context() | What the machine and the game were set to while recording: read with the report, so a slow run can be told fr… |
| dump() | Dump. |
Actions
toggle
static sourceReactorProfiler.toggle()
Toggle.
start
static sourceReactorProfiler.start()
Start.
stop
static sourceReactorProfiler.stop()
Stop.
Other
frameBegin
static sourceReactorProfiler.frameBegin()
Frame begin.
phase
static sourceReactorProfiler.phase(name, ms)
Phase.
frameEnd
static sourceReactorProfiler.frameEnd()
Frame end.
context
static sourceReactorProfiler.context(elapsed)
What the machine and the game were set to while recording: read with the report, so a slow run can be told from a slow machine.
dump
static sourceReactorProfiler.dump()
Dump.