Class: Profiler

Profiler

new gdjs.Profiler()

A basic profiling tool that can be used to measure time spent in sections of the engine.

See:

Methods

staticgdjs.Profiler.getProfilerSectionTexts(sectionName, profilerSection, outputs)

Convert measures for a section into texts. Useful for ingame profiling.

Name Type Description
sectionName string

The name of the section

profilerSection s

The section measures

outputs *

The array where to push the results

getFramesAverageMeasures()

Return the measures for all the section of the game during the frames captured.

getStats()

Get stats measured during the frames captured.