Navigation
API > API/Runtime > API/Runtime/Core
Debug memory allocator.
| Name | FMallocDebug |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/MallocDebug.h |
| Include Path | #include "HAL/MallocDebug.h" |
Syntax
class FMallocDebug : public FMalloc
Inheritance Hierarchy
- FExec → FMalloc → FMallocDebug
- FUseSystemMallocForNew → FMalloc → FMallocDebug
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMallocDebug() |
HAL/MallocDebug.h |
Structs
| Name | Remarks |
|---|---|
| FMemDebug | Structure for memory debugging. |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AllocatorOverhead | uint32 | HAL/MallocDebug.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GFirstDebug | FMemDebug * | HAL/MallocDebug.h | ||
| TotalAllocationSize | SIZE_T | Total size of allocations | HAL/MallocDebug.h | |
| TotalWasteSize | SIZE_T | Total size of allocation overhead | HAL/MallocDebug.h |
Functions
Public
Overridden from FMalloc
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DumpAllocatorStats
(
FOutputDevice& Ar |
Dumps details about all allocations to an output device | HAL/MallocDebug.h | |
virtual void Free
(
void* InPtr |
Free | HAL/MallocDebug.h | |
virtual bool GetAllocationSize
(
void* Original, |
If possible determine the size of the memory allocated at the given address | HAL/MallocDebug.h | |
virtual const TCHAR * GetDescriptiveName() |
Gets descriptive name for logging purposes. | HAL/MallocDebug.h | |
virtual void * Malloc
(
SIZE_T Size, |
Malloc | HAL/MallocDebug.h | |
virtual void * Realloc
(
void* InPtr, |
Realloc | HAL/MallocDebug.h | |
virtual bool ValidateHeap() |
Validates the allocator's heap | HAL/MallocDebug.h |
Overridden from FExec
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Exec
(
UWorld* InWorld, |
Handles any commands passed in on the command line | HAL/MallocDebug.h |