Ark Server API (ASA) - Wiki
|
#include <MallocDebug.h>
Classes | |
struct | FMemDebug |
Private Types | |
enum | { MEM_PreTag = 0xf0ed1cee } |
enum | { MEM_PostTag = 0xdeadf00f } |
enum | { MEM_Tag = 0xfe } |
enum | { MEM_WipeTag = 0xcd } |
enum | { ALLOCATION_ALIGNMENT = 16 } |
enum | { MEM_SizeMax = 128 } |
enum | { MEM_Recent = 5000 } |
enum | { MEM_AgeMax = 80 } |
enum | { MEM_AgeSlice = 100 } |
Private Attributes | |
FMemDebug * | GFirstDebug |
SIZE_T | TotalAllocationSize |
SIZE_T | TotalWasteSize |
Static Private Attributes | |
static constexpr uint32 | AllocatorOverhead = sizeof(FMemDebug) + sizeof(FMemDebug*) + sizeof(int32) + ALLOCATION_ALIGNMENT + sizeof(int32) |
Additional Inherited Members | |
Static Public Attributes inherited from FMalloc | |
static TAtomic< uint64 > | MaxSingleAlloc |
Protected Member Functions inherited from FExec | |
virtual bool | Exec_Dev (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
virtual bool | Exec_Editor (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
Definition at line 12 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_PreTag |
Definition at line 15 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_PostTag |
Definition at line 16 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_Tag |
Definition at line 17 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_WipeTag |
Definition at line 18 of file MallocDebug.h.
Enumerator | |
---|---|
ALLOCATION_ALIGNMENT |
Definition at line 21 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_SizeMax |
Definition at line 24 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_Recent |
Definition at line 25 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_AgeMax |
Definition at line 26 of file MallocDebug.h.
Enumerator | |
---|---|
MEM_AgeSlice |
Definition at line 27 of file MallocDebug.h.
|
inline |
Definition at line 51 of file MallocDebug.h.
|
inlineoverridevirtual |
Dumps details about all allocations to an output device
Ar | [in] Output device |
Reimplemented from FMalloc.
Definition at line 174 of file MallocDebug.h.
|
inlineoverridevirtual |
Exec handler
InWorld | World context |
Cmd | Command to parse |
Ar | Output device to log to |
Reimplemented from FExec.
Definition at line 214 of file MallocDebug.h.
Free
Implements FMalloc.
Definition at line 116 of file MallocDebug.h.
|
inlineoverridevirtual |
If possible determine the size of the memory allocated at the given address
Original | - Pointer to memory we are checking the size of |
SizeOut | - If possible, this value is set to the size of the passed in pointer |
Reimplemented from FMalloc.
Definition at line 154 of file MallocDebug.h.
Gets descriptive name for logging purposes.
Reimplemented from FMalloc.
Definition at line 219 of file MallocDebug.h.
Malloc
Implements FMalloc.
Definition at line 60 of file MallocDebug.h.
|
inlineoverridevirtual |
Realloc
Implements FMalloc.
Definition at line 91 of file MallocDebug.h.
Validates the allocator's heap
Reimplemented from FMalloc.
Definition at line 197 of file MallocDebug.h.
|
staticconstexprprivate |
Definition at line 47 of file MallocDebug.h.
|
private |
Definition at line 40 of file MallocDebug.h.
|
private |
Total size of allocations
Definition at line 43 of file MallocDebug.h.
|
private |
Total size of allocation overhead
Definition at line 45 of file MallocDebug.h.