Add more memory profiling coverage
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Engine/Core/Memory/Memory.h"
|
||||
#include "Engine/Profiler/ProfilerMemory.h"
|
||||
#define MOODYCAMEL_EXCEPTIONS_ENABLED 0
|
||||
#include <ThirdParty/concurrentqueue.h>
|
||||
|
||||
@@ -17,6 +18,7 @@ struct ConcurrentQueueSettings : public moodycamel::ConcurrentQueueDefaultTraits
|
||||
// Use default engine memory allocator
|
||||
static inline void* malloc(size_t size)
|
||||
{
|
||||
PROFILE_MEM(EngineThreading);
|
||||
return Allocator::Allocate((uint64)size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user