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

Function ResetThreadData

engine/profiler/src/basic/profiler_basic.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static void ResetThreadData(ThreadData* td)
143{
144 td->m_SamplePool.SetSize(0);
145 td->m_Root.m_FirstChild = 0;
146 td->m_Root.m_LastChild = 0;
147 td->m_CurrentSample = &td->m_Root;
148 td->m_OverflowDepth = 0;
149}
150
151///////////////////////////////////////////////////////////////////////////////////////////////
152// PROFILE CONTEXT

Callers 2

ThreadDataMethod · 0.85
ScopeEndFunction · 0.85

Calls 1

SetSizeMethod · 0.45

Tested by

no test coverage detected