(MemoryManager) Added allocation logging
Former-commit-id: 6f7d5ae28b8a4bfecfc2dca5010524a3f2c88aaf
This commit is contained in:
@@ -16,12 +16,16 @@ class NAZARA_API NzMemoryManager
|
||||
public:
|
||||
static void* Allocate(std::size_t size, bool multi = false, const char* file = nullptr, unsigned int line = 0);
|
||||
|
||||
static void EnableAllocationLogging(bool logAllocations);
|
||||
|
||||
static void Free(void* pointer, bool multi = false);
|
||||
|
||||
static unsigned int GetAllocatedBlockCount();
|
||||
static std::size_t GetAllocatedSize();
|
||||
static unsigned int GetAllocationCount();
|
||||
|
||||
static bool IsAllocationLoggingEnabled();
|
||||
|
||||
static void NextFree(const char* file, unsigned int line);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user