| 202 | /////////////////////////////////////////////////////////////////////////////////////////////// |
| 203 | |
| 204 | static 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 | |
| 212 | static uint32_t GetOrCacheNameHash(const char* name, uint32_t* pname_hash) |
| 213 | { |