(MemoryManager) Added allocation logging

Former-commit-id: 6f7d5ae28b8a4bfecfc2dca5010524a3f2c88aaf
This commit is contained in:
Lynix
2015-02-03 14:43:58 +01:00
parent 0a324d9323
commit 29b61ec958
2 changed files with 30 additions and 0 deletions

View File

@@ -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: