Add memory profiling events to the main areas of the engine
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "Engine/Core/Log.h"
|
||||
#include "Engine/Serialization/WriteStream.h"
|
||||
#include "Engine/Serialization/MemoryReadStream.h"
|
||||
#include "Engine/Profiler/ProfilerMemory.h"
|
||||
|
||||
void NavMeshData::Save(WriteStream& stream)
|
||||
{
|
||||
@@ -47,6 +48,7 @@ bool NavMeshData::Load(BytesContainer& data, bool copyData)
|
||||
return true;
|
||||
}
|
||||
MemoryReadStream stream(data.Get(), data.Length());
|
||||
PROFILE_MEM(Navigation);
|
||||
|
||||
// Read header
|
||||
const auto header = stream.Move<NavMeshDataHeader>();
|
||||
|
||||
Reference in New Issue
Block a user