#include <wwmemlog.h>
Static Public Member Functions | |
| static void | Enable_Memory_Log (bool enable) |
| static bool | Is_Memory_Log_Enabled () |
| static int | Get_Category_Count (void) |
| static const char * | Get_Category_Name (int category) |
| static int | Get_Current_Allocated_Memory (int category) |
| static int | Get_Peak_Allocated_Memory (int category) |
| static int | Register_Memory_Allocated (int size) |
| static void | Register_Memory_Released (int category, int size) |
| static void * | Allocate_Memory (size_t size) |
| static void | Release_Memory (void *mem) |
| static void | Reset_Counters () |
| static int | Get_Allocate_Count () |
| static int | Get_Free_Count () |
| static void | Init () |
Static Protected Member Functions | |
| static void | Push_Active_Category (int category) |
| static void | Pop_Active_Category (void) |
| static MemLogClass * | Get_Log (void) |
| static void | Release_Log (void) |
Static Protected Attributes | |
| static bool | IsMemoryLogEnabled =false |
Friends | |
| class | WWMemorySampleClass |
WWMemoryLogClass This interface can provide information on how much memory has been allocated to each memory category. In order to enable this logging, you will need to implement global new and delete functions which call the Allocate_Memory and Release_Memory functions in this class. For example:
void * operator new (size_t size) { return WWMemoryLogClass::Allocate_Memory(size); }
void operator delete (void *ptr) { WWMemoryLogClass::Release_Memory(ptr); }
Definition at line 98 of file wwmemlog.h.
|
static |
Definition at line 642 of file wwmemlog.cpp.
|
inlinestatic |
Definition at line 101 of file wwmemlog.h.
|
static |
Definition at line 749 of file wwmemlog.cpp.
|
static |
Definition at line 482 of file wwmemlog.cpp.
|
static |
Definition at line 487 of file wwmemlog.cpp.
|
static |
Definition at line 492 of file wwmemlog.cpp.
|
static |
Definition at line 755 of file wwmemlog.cpp.
|
staticprotected |
Definition at line 533 of file wwmemlog.cpp.
|
static |
Definition at line 497 of file wwmemlog.cpp.
|
static |
Definition at line 760 of file wwmemlog.cpp.
|
inlinestatic |
Definition at line 102 of file wwmemlog.h.
|
staticprotected |
Definition at line 509 of file wwmemlog.cpp.
|
staticprotected |
Definition at line 502 of file wwmemlog.cpp.
|
static |
Definition at line 516 of file wwmemlog.cpp.
|
static |
Definition at line 521 of file wwmemlog.cpp.
|
staticprotected |
Definition at line 574 of file wwmemlog.cpp.
|
static |
Definition at line 705 of file wwmemlog.cpp.
|
static |
Definition at line 742 of file wwmemlog.cpp.
|
friend |
Definition at line 144 of file wwmemlog.h.
Definition at line 142 of file wwmemlog.h.