Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
276
void ToggleProfiler()
277
{
278
if (gRenderProfile)
279
{
280
DeleteProfilerUI();
281
}
282
else
283
{
284
gRenderProfile = dmProfileRender::NewRenderProfile(gUpdateFrequency);
285
}
286
}
287
288
struct ThreadSortPred
289
{
Callers
2
TEST
Function · 0.50
Dispatch
Function · 0.50
Calls
2
DeleteProfilerUI
Function · 0.85
NewRenderProfile
Function · 0.85
Tested by
1
TEST
Function · 0.40