Add memory profiling events to the main areas of the engine

This commit is contained in:
Wojtek Figat
2025-05-22 04:47:01 +02:00
parent 32bc73610f
commit c639a3103c
101 changed files with 502 additions and 17 deletions

View File

@@ -4,6 +4,7 @@
#include "JobSystem.h"
#include "Engine/Core/Collections/Sorting.h"
#include "Engine/Profiler/ProfilerCPU.h"
#include "Engine/Profiler/ProfilerMemory.h"
namespace
{
@@ -67,6 +68,7 @@ const Array<TaskGraphSystem*, InlinedAllocation<64>>& TaskGraph::GetSystems() co
void TaskGraph::AddSystem(TaskGraphSystem* system)
{
PROFILE_MEM(Engine);
_systems.Add(system);
}
@@ -78,6 +80,7 @@ void TaskGraph::RemoveSystem(TaskGraphSystem* system)
void TaskGraph::Execute()
{
PROFILE_CPU();
PROFILE_MEM(Engine);
for (auto system : _systems)
system->PreExecute(this);