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

Function ProfileLogText

engine/dlib/src/dlib/profile/profile.cpp:329–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329ProfileResult ProfileLogText(const char* format, ...)
330{
331 CHECK_INITIALIZED_RETVAL(PROFILE_RESULT_NOT_INITIALIZED);
332 DM_MUTEX_SCOPED_LOCK(g_ProfileLock);
333
334 char buffer[DM_PROFILE_TEXT_LENGTH];
335
336 va_list lst;
337 va_start(lst, format);
338 int n = vsnprintf(buffer, DM_PROFILE_TEXT_LENGTH, format, lst);
339 if (n < 0)
340 {
341 buffer[DM_PROFILE_TEXT_LENGTH-1] = '\0';
342 }
343 va_end(lst);
344
345 DO_LOOP_RETVAL(LogText, buffer);
346}
347
348// *****************************************************************************************
349// Properties

Callers 2

ProfilerLogTextFunction · 0.50
DoLogSynchronizedFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected