Add more memory profiling coverage

This commit is contained in:
Wojtek Figat
2025-06-06 14:38:22 +02:00
parent 9d8e75caa3
commit cd637e8a7a
14 changed files with 57 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
#if COMPILE_WITH_PROFILER
#include "ProfilerCPU.h"
#include "ProfilerMemory.h"
#include "Engine/Engine/Globals.h"
#include "Engine/Threading/ThreadRegistry.h"
@@ -157,6 +158,7 @@ int32 ProfilerCPU::BeginEvent()
auto thread = Thread::Current;
if (thread == nullptr)
{
PROFILE_MEM(Profiler);
const auto id = Platform::GetCurrentThreadID();
const auto t = ThreadRegistry::GetThread(id);
if (t)