#include "always.h"
#include "wwmemlog.h"
#include "wwdebug.h"
#include "vector.h"
#include "fastallocator.h"
#include <windows.h>
Go to the source code of this file.
◆ ALLOC_MEMORY
| #define ALLOC_MEMORY |
( |
| n | ) |
|
Value:
static FastAllocatorGeneral * Get_Allocator()
void * Alloc(unsigned int n)
Definition at line 61 of file wwmemlog.cpp.
◆ DISABLE_MEMLOG
◆ FREE_MEMORY
◆ MEMLOG_USE_CRITICALSECTION
| #define MEMLOG_USE_CRITICALSECTION 1 |
◆ MEMLOG_USE_FASTCRITICALSECTION
| #define MEMLOG_USE_FASTCRITICALSECTION 0 |
◆ MEMLOG_USE_MUTEX
| #define MEMLOG_USE_MUTEX 0 |
◆ USE_FAST_ALLOCATOR
| #define USE_FAST_ALLOCATOR |
◆ Get_Mem_Log_Mutex()
| WWINLINE void * Get_Mem_Log_Mutex |
( |
void | | ) |
|
◆ Lock_Mem_Log_Mutex()
| WWINLINE void Lock_Mem_Log_Mutex |
( |
void | | ) |
|
◆ Unlock_Mem_Log_Mutex()
| WWINLINE void Unlock_Mem_Log_Mutex |
( |
void | | ) |
|
◆ MAX_CATEGORY_STACK_DEPTH
| const int MAX_CATEGORY_STACK_DEPTH = 1024 |
ActiveCategoryStackClass This object is used to keep track of the "active memory category". Whenever memory is allocated it will be charged to the current active memory category. To be thread-safe, there will be one ActiveCategoryStack per thread that is encountered in the program.
Definition at line 153 of file wwmemlog.cpp.
◆ MAX_CATEGORY_STACKS
| const int MAX_CATEGORY_STACKS = 256 |
ActiveCategoryClass This is a dynamic vector of ActiveCategoryStackClasses which adds a new stack each time a new thread is encountered. It also is able to return to you the active category for the currently active thread automatically.
Definition at line 194 of file wwmemlog.cpp.
◆ WWMEMLOG_KEY0
| const int WWMEMLOG_KEY0 = (unsigned('G')<<24) | (unsigned('g')<<16) | (unsigned('0')<<8) | unsigned('l') |
◆ WWMEMLOG_KEY1
| const int WWMEMLOG_KEY1 = (unsigned('~')<<24) | (unsigned('_')<<16) | (unsigned('d')<<8) | unsigned('3') |