FMallocDebug

Inheritance Hierarchy

Syntax

class FMallocDebug : public FMalloc

Remarks

Debug memory allocator.

Constructors

Name Description

Public function

FMallocDebug()

FMalloc interface.

Overridden from FMalloc

Name Description

Public function Virtual

void

 

DumpAllocatorStats

(
    FOutputDevice & Ar
)

Dumps details about all allocations to an output device

Public function Virtual

void

 

Free

(
    void* InPtr
)

Free

Public function Virtual

bool

 

GetAllocationSize

(
    void* Original,
    SIZE_T & SizeOut
)

If possible determine the size of the memory allocated at the given address

true if succeeded

Public function Virtual

const TCHAR ...

 

GetDescriptiveName()

Gets descriptive name for logging purposes.

pointer to human-readable malloc name

Public function Virtual

void *

 

Malloc

(
    SIZE_T Size,
    uint32 Alignment
)

Malloc

Public function Virtual

void *

 

Realloc

(
    void* InPtr,
    SIZE_T NewSize,
    uint32 Alignment
)

Realloc

Public function Virtual

bool

 

ValidateHeap()

Validates the allocator's heap

Overridden from FExec

Name Description

Public function Virtual

bool

 

Exec

(
    UWorld * InWorld,
    const TCHAR * Cmd,
    FOutputDevice & Ar
)

Handles any commands passed in on the command line

Constants

Name

Description

ALLOCATION_ALIGNMENT

Alignment.

AllocatorOverhead

MEM_AgeMax

MEM_AgeSlice

MEM_PostTag

MEM_PreTag

Tags.

MEM_Recent

MEM_SizeMax

Number of block sizes to collate (in steps of 4 bytes)

MEM_Tag

MEM_WipeTag

References

Module

Core

Header

Runtime/Core/Public/HAL/MallocDebug.h