Navigation
API > API/Runtime > API/Runtime/CoreUObject
Structure that holds all direct references traversed in a GC run as well as FGCObjectInfo structs created for all participating objects
| Name | FGCSnapshot |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/GarbageCollectionHistory.h |
| Include Path | #include "UObject/GarbageCollectionHistory.h" |
Syntax
struct FGCSnapshot
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DirectReferences | TMap< FReferenceToken, TArray< FGCDirectReference > * > | List of direct references for all objects | UObject/GarbageCollectionHistory.h | |
| ObjectToInfoMap | TMap< const UObject *, FGCObjectInfo * > | FGCObjectInfo structs generated for each of the objects encountered during GC | UObject/GarbageCollectionHistory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int64 GetAllocatedSize() |
Returns the number of bytes allocated by a single snapshot | UObject/GarbageCollectionHistory.h |