MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetLoadingProfilerCallstack

Method GetLoadingProfilerCallstack

Code/CryEngine/CrySystem/LoadingProfiler.cpp:415–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415const char* CLoadingProfilerSystem::GetLoadingProfilerCallstack()
416{
417 CryAutoCriticalSection lock(csLock);
418
419 static char szStack[1024];
420
421 szStack[0] = 0;
422
423 SLoadingTimeContainer* pC = m_pCurrentLoadingTimeContainer;
424
425 PodArray<SLoadingTimeContainer*> arrItems;
426
427 while (pC)
428 {
429 arrItems.Add(pC);
430 pC = pC->m_pParent;
431 }
432
433 for (int i = arrItems.Count() - 1; i >= 0; i--)
434 {
435 cry_strcat(szStack, " > ");
436 cry_strcat(szStack, arrItems[i]->m_pFuncName);
437 }
438
439 return &szStack[0];
440}
441
442void CLoadingProfilerSystem::FillProfilersList(std::vector<SLoadingProfilerInfo>& profilers)
443{

Callers

nothing calls this directly

Calls 3

cry_strcatFunction · 0.85
AddMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected