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

Function FindProfilerThread

engine/profiler/src/profiler_render.cpp:876–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874 }
875
876 static ProfilerThread* FindProfilerThread(ProfilerFrame* ctx, dmhash_t name_hash)
877 {
878 for (uint32_t i = 0; i < ctx->m_Threads.Size(); ++i)
879 {
880 if (name_hash == ctx->m_Threads[i]->m_NameHash)
881 {
882 return ctx->m_Threads[i];
883 }
884 }
885 return 0;
886 }
887
888 ProfilerThread* FindOrCreateProfilerThread(ProfilerFrame* ctx, uint32_t name_hash)
889 {

Callers 1

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected