| 413 | } |
| 414 | |
| 415 | const 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 | |
| 442 | void CLoadingProfilerSystem::FillProfilersList(std::vector<SLoadingProfilerInfo>& profilers) |
| 443 | { |
nothing calls this directly
no test coverage detected