| 241 | } |
| 242 | |
| 243 | static ProfileResult ScopeEnd(void*, const char* name, uint64_t name_hash) |
| 244 | { |
| 245 | (void)name_hash; |
| 246 | CHECK_INITIALIZED_RETVAL(PROFILE_RESULT_NOT_INITIALIZED); |
| 247 | DM_MUTEX_SCOPED_LOCK(g_Lock); |
| 248 | const int32_t thread_id = GetThreadId(); |
| 249 | |
| 250 | if (dmProfileJSEndMark(thread_id)) { |
| 251 | dmProfileJSReset(thread_id); |
| 252 | } |
| 253 | return PROFILE_RESULT_OK; |
| 254 | } |
| 255 | |
| 256 | // ******************************************************************* |
| 257 |
nothing calls this directly
no test coverage detected