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

Method ThreadData

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

Source from the content-addressed store, hash-verified

115 uint32_t m_OverflowDepth;
116
117 ThreadData(int32_t thread_id)
118 : m_ThreadId(thread_id)
119 {
120 memset(this, 0, sizeof(*this));
121 m_Root.m_NameHash = HashString32("Root");
122
123 // mustn't reallocate as we use pointers directly into this array
124 m_SamplePool.SetCapacity(g_MaxSampleCount);
125 m_SamplePool.SetSize(0);
126
127 ResetThreadData(this);
128 }
129};
130
131static Sample* AllocateNewSample(ThreadData* td)

Callers

nothing calls this directly

Calls 4

HashString32Function · 0.85
ResetThreadDataFunction · 0.85
SetCapacityMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected