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

Function PopLuaProfilerScope

engine/profiler/src/profiler.cpp:221–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221static LuaProfilerScopeState* PopLuaProfilerScope(lua_State* L, LuaProfilerScope* out_scope)
222{
223 LuaProfilerScopeState* state = FindLuaProfilerScopeState(L);
224 if (state == 0 || state->m_Scopes.Empty())
225 {
226 return 0;
227 }
228
229 *out_scope = state->m_Scopes.Back();
230 state->m_Scopes.Pop();
231 return state;
232}
233
234static void AutoCloseLuaProfilerScopes()
235{

Callers 1

ProfilerScopeEndFunction · 0.85

Calls 3

EmptyMethod · 0.45
PopMethod · 0.45

Tested by

no test coverage detected