| FUseSystemMallocForNew | ||||||||
| FExec
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/HAL/MallocCallstackHandler.h |
Include |
#include "HAL/MallocCallstackHandler.h" |
class FMallocCallstackHandler : public FMalloc
Name | Description | ||
---|---|---|---|
|
CallStackInfoArray |
||
|
CallStackMapKeyToCallStackIndexMap |
||
|
CriticalSection |
||
|
DisabledTLS |
||
|
Initialized |
||
|
RWLock |
||
|
FMalloc * |
UsedMalloc |
Malloc we're based on, aka using under the hood |
Name | Description | |
---|---|---|
|
FMallocCallstackHandler ( |
Name | Description | ||
---|---|---|---|
|
DecDisabled() |
||
|
DumpStackTraceToLog ( |
||
|
GetCallStackIndex() |
||
|
IncDisabled() |
||
|
Init() |
||
|
IsDisabled() |
||
|
TrackFree |
||
|
TrackMalloc |
||
|
TrackRealloc |
Name | Description | ||
---|---|---|---|
|
ClearAndDisableTLSCachesOnCurrentThread() |
Clears the TLS caches on the current thread and disables any future caching. |
|
|
DumpAllocatorStats ( |
Dumps current allocator stats to the log. |
|
|
Free ( |
Free |
|
|
GetAllocationSize |
If possible determine the size of the memory allocated at the given address |
|
|
GetAllocatorStats ( |
Writes allocator stats from the last update into the specified destination. |
|
|
const TCHAR ... |
GetDescriptiveName() |
Gets descriptive name for logging purposes. |
|
InitializeStatsMetadata() |
Initializes stats metadata. |
|
|
IsInternallyThreadSafe() |
Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it. |
|
|
void * |
Malloc |
Malloc |
|
QuantizeSize |
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. |
|
|
void * |
Realloc |
Realloc |
|
SetupTLSCachesOnCurrentThread() |
Set up TLS caches on the current thread. These are the threads that we can trim. |
|
|
Trim ( |
Releases as much memory as possible. Must be called from the main thread. |
|
|
UpdateStats() |
Called once per frame, gathers and sets all memory allocator statistics into the corresponding stats. |
|
|
ValidateHeap() |
Validates the allocator's heap |
Name |
Description |
|
---|---|---|
|
FCallStackInfo |
|
|
FCallStackMapKey |
Used as a key in our current allocations/freed allocations maps |
Name |
Description |
---|---|
CallStackEntriesToSkipCount |
|
MaxCallStackDepth |