| 205 | } |
| 206 | |
| 207 | static ProfileResult SetThreadName(void*, const char* name) |
| 208 | { |
| 209 | CHECK_INITIALIZED_RETVAL(PROFILE_RESULT_NOT_INITIALIZED); |
| 210 | DM_MUTEX_SCOPED_LOCK(g_Lock); |
| 211 | if (g_ProfileContext->m_ThreadNames.Full()) |
| 212 | { |
| 213 | uint32_t cap = g_ProfileContext->m_ThreadNames.Capacity() + 32; |
| 214 | g_ProfileContext->m_ThreadNames.SetCapacity((cap*2)/3, cap); |
| 215 | } |
| 216 | g_ProfileContext->m_ThreadNames.Put(GetThreadId(), strdup(name)); |
| 217 | return PROFILE_RESULT_OK; |
| 218 | } |
| 219 | |
| 220 | static ProfileResult FrameBegin(void*) |
| 221 | { |
nothing calls this directly
no test coverage detected