Return the measures for all the section of the game during the frames
captured, as a plain tree (no back-references): safe to serialize
with JSON.stringify.
Return, for each section, the maximum time it took during a single
captured frame - the "worst frame" per section, catching the spikes
that averages hide. Plain tree, safe to serialize with
JSON.stringify.
Static getConvert measures for a section into texts. Useful for ingame profiling.
The name of the section
The section measures
The array where to push the results
Optional parentTime: null | numberGet stats measured during the frames captured.
A basic profiling tool that can be used to measure time spent in sections of the engine.