Class in reactor_core.js

ReactorProfiler

8 public functions in 2 groups · show internal (_) functions

Core runtime: data, input and the ReactorEvents feed.

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.

@namespace
function ReactorProfiler()

Quick Reference

Actions 3

toggle() Toggle.
start() Start.
stop() Stop.

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 source
ReactorProfiler.toggle()

Toggle.

start

static source
ReactorProfiler.start()

Start.

stop

static source
ReactorProfiler.stop()

Stop.

Other

frameBegin

static source
ReactorProfiler.frameBegin()

Frame begin.

phase

static source
ReactorProfiler.phase(name, ms)

Phase.

frameEnd

static source
ReactorProfiler.frameEnd()

Frame end.

context

static source
ReactorProfiler.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 source
ReactorProfiler.dump()

Dump.