Navigation
API > API/Runtime > API/Runtime/Core
Allocator that will grow as needed with direct mapped memory for a given memory type
| Name | TGenericGrowableAllocator |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/GenericGrowableAllocator.h |
| Include Path | #include "Misc/GenericGrowableAllocator.h" |
Syntax
template<typename ChunkAllocatorType, typename GrowableAllocationBaseType>
class TGenericGrowableAllocator : public FGrowableMallocBase
Inheritance Hierarchy
- FGrowableMallocBase → TGenericGrowableAllocator
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Constructor Internally allocates address space for use only by this allocator | Misc/GenericGrowableAllocator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TGenericGrowableAllocator() |
Destructor | Misc/GenericGrowableAllocator.h |
Structs
| Name | Remarks |
|---|---|
| AllocationInfo | |
| AllocFreeCounts |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllocChunks | TArray< ChunkAllocatorType * > | List of currently allocated chunks | Misc/GenericGrowableAllocator.h | |
| CriticalSection | FCriticalSection | A critical section used to coordinate all access in this instance of the allocator and it's chunks | Misc/GenericGrowableAllocator.h | |
| CurSizeAllocated | uint64 | Total currently allocated from OS | Misc/GenericGrowableAllocator.h | |
| MemoryType | uint32 | The type of memory this allocator allocates from the kernel | Misc/GenericGrowableAllocator.h | |
| NumAllocations | uint64 | Misc/GenericGrowableAllocator.h | ||
| OutstandingAllocationsHistogram | TMap< uint64, uint32 > | Misc/GenericGrowableAllocator.h | ||
| OwnerTypeToStatIdMap | const FName * | For stats/dumping, we use this to convert OwnerType of an allocation to a printable name | Misc/GenericGrowableAllocator.h | |
| PeakAllocationsHistogram | TMap< uint64, uint32 > | Misc/GenericGrowableAllocator.h | ||
| PerTypeAllocationInfo | TMap< int32, AllocationInfo > | Misc/GenericGrowableAllocator.h | ||
| StatRegionName | FName | The stat memory region to update max size | Misc/GenericGrowableAllocator.h | |
| SubAllocationAlignment | const uint32 | Size must be aligned at least to this | Misc/GenericGrowableAllocator.h | |
| TotalAllocationsHistogram | TMap< uint64, uint32 > | Misc/GenericGrowableAllocator.h | ||
| TotalAllocationSize | uint64 | Just stat tracking | Misc/GenericGrowableAllocator.h | |
| UserData | void * | Extra data to pass to new Chunks | Misc/GenericGrowableAllocator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool DoesAllocatorContainAddress
(
const void* Address |
Misc/GenericGrowableAllocator.h | ||
void DumpMemoryInfo() |
Misc/GenericGrowableAllocator.h | ||
bool Free
(
GrowableAllocationBaseType* Memory |
Misc/GenericGrowableAllocator.h | ||
void GetAllocationInfo
(
uint32& Chunks, |
Misc/GenericGrowableAllocator.h | ||
GrowableAllocationBaseType * Malloc
(
uint32 Size, |
Misc/GenericGrowableAllocator.h | ||
void ShowAllocationInfo() |
Misc/GenericGrowableAllocator.h | ||
void ShowFullAllocationInfo() |
Misc/GenericGrowableAllocator.h |