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

Function GetNameFromHash

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

Source from the content-addressed store, hash-verified

202///////////////////////////////////////////////////////////////////////////////////////////////
203
204static const char* GetNameFromHash(uint32_t name_hash)
205{
206 CHECK_INITIALIZED_RETVAL("null");
207 DM_MUTEX_SCOPED_LOCK(g_Lock);
208 const char** pname = g_ProfileContext->m_Names.Get(name_hash);
209 return pname != 0 ? *pname : "null";
210}
211
212static uint32_t GetOrCacheNameHash(const char* name, uint32_t* pname_hash)
213{

Callers 1

SampleGetNameFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected