MCPcopy Create free account
hub / github.com/defold/defold / ToggleProfiler

Function ToggleProfiler

engine/profiler/src/profiler.cpp:276–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void ToggleProfiler()
277{
278 if (gRenderProfile)
279 {
280 DeleteProfilerUI();
281 }
282 else
283 {
284 gRenderProfile = dmProfileRender::NewRenderProfile(gUpdateFrequency);
285 }
286}
287
288struct ThreadSortPred
289{

Callers 2

TESTFunction · 0.50
DispatchFunction · 0.50

Calls 2

DeleteProfilerUIFunction · 0.85
NewRenderProfileFunction · 0.85

Tested by 1

TESTFunction · 0.40