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

Function DeleteEmptyLuaProfilerScopeStates

engine/profiler/src/profiler.cpp:155–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static void DeleteEmptyLuaProfilerScopeStates()
156{
157 LuaProfilerScopeState** state_ptr = &g_LuaProfilerScopeStates;
158 while (*state_ptr != 0)
159 {
160 LuaProfilerScopeState* state = *state_ptr;
161 if (!ShouldRetainLuaProfilerScopeState(state))
162 {
163 *state_ptr = state->m_Next;
164 delete state;
165 }
166 else
167 {
168 state_ptr = &state->m_Next;
169 }
170 }
171}
172
173template <typename T>
174static void EnsureLuaProfilerCapacity(dmArray<T>* array, uint32_t additional_count, uint32_t min_capacity)

Callers 1

Calls 1

Tested by

no test coverage detected