PerfProfiler.auto constructor
PerfProfiler.auto(
- dynamic gl
Creates the best available profiler for the given WebGL context.
Implementation
factory PerfProfiler.auto(dynamic gl) =>
DisjointQueryGpuProfiler.tryCreate(gl.gl) ?? // pass the gl binding
GlFinishSamplerProfiler.tryCreate(gl) ??
CpuOnlyProfiler();