Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/GarbageCollectionHistory.h |
| Include | #include "UObject/GarbageCollectionHistory.h" |
Syntax
class FGCHistory
Remarks
Garbage Collector History. Holds snapshots of a number of previous GC runs.
Destructors
No destructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Cleanup () |
Frees memory allocated by GC history. | |
| FGCHistory & | Get () |
Gets the FGCHistory singleton. | |
| int64 | Returns the number of bytes allocated by GC history | ||
| UObject * | Returns an object representing GC Barrier | ||
| int32 | |||
| FGCSnapshot * | Returns the snapshot of the last GC run. | ||
| FGCSnapshot * | GetSnapshot
(
int32 HistoryLevel |
Gets a snapshot of a previous GC run. | |
| bool | IsActive () |
||
| void | SetHistorySize
(
int32 HistorySize |
Sets how many GC runs the history can record. | |
| void | Update
(
TConstArrayView< TUniquePtr< UE::GC::FWorkerContext > > Contexts |
Copies information generated by Garbage Collector into the next snapshot struct. |