FMallocDebug

Debug memory allocator.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/MallocDebug.h

Include

#include "HAL/MallocDebug.h"

Syntax

class FMallocDebug : public FMalloc

Remarks

Debug memory allocator.

Constructors

Name Description

Public function

FMallocDebug()

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

Public function Virtual

const TCHAR ...

 

GetDescriptiveName()

Gets descriptive name for logging purposes.

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss