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

Function ScopeBegin

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

Source from the content-addressed store, hash-verified

232}
233
234static ProfileResult ScopeBegin(void*, const char* name, uint64_t name_hash)
235{
236 (void)name_hash;
237 CHECK_INITIALIZED_RETVAL(PROFILE_RESULT_NOT_INITIALIZED);
238 DM_MUTEX_SCOPED_LOCK(g_Lock);
239 dmProfileJSBeginMark(GetThreadId(), name);
240 return PROFILE_RESULT_OK;
241}
242
243static ProfileResult ScopeEnd(void*, const char* name, uint64_t name_hash)
244{

Callers

nothing calls this directly

Calls 1

GetThreadIdFunction · 0.70

Tested by

no test coverage detected