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

Function ScopeEnd

engine/profiler/src/js/profiler_js.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static 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

Callers

nothing calls this directly

Calls 1

GetThreadIdFunction · 0.70

Tested by

no test coverage detected