#include <ReferenceChainSearch.h>
|
| COREUOBJECT_API | FReferenceChainSearch (UObject *InObjectToFindReferencesTo, EReferenceChainSearchMode Mode=EReferenceChainSearchMode::PrintResults, ELogVerbosity::Type InVerbosityForPrint=ELogVerbosity::Log) |
| |
| COREUOBJECT_API | FReferenceChainSearch (TConstArrayView< UObject * > InObjectsToFindReferencesTo, EReferenceChainSearchMode Mode=EReferenceChainSearchMode::PrintResults, ELogVerbosity::Type InVerbosityForPrint=ELogVerbosity::Log) |
| |
| COREUOBJECT_API | FReferenceChainSearch (EReferenceChainSearchMode Mode) |
| |
| COREUOBJECT_API | ~FReferenceChainSearch () |
| |
| COREUOBJECT_API int32 | PrintResults (bool bDumpAllChains=false, UObject *TargetObject=nullptr, ELogVerbosity::Type VerbosityForPrint=ELogVerbosity::Log) const |
| |
| COREUOBJECT_API void | SetVerbosityForPrint (ELogVerbosity::Type Verbosity) |
| |
| COREUOBJECT_API int32 | PrintResults (TFunctionRef< bool(FCallbackParams &Params)> ReferenceCallback, bool bDumpAllChains=false, UObject *TargetObject=nullptr, ELogVerbosity::Type VerbosityForPrint=ELogVerbosity::Log) const |
| |
| COREUOBJECT_API FString | GetRootPath (UObject *TargetObject=nullptr) const |
| |
| COREUOBJECT_API FString | GetRootPath (TFunctionRef< bool(FCallbackParams &Params)> ReferenceCallback, UObject *TargetObject=nullptr) const |
| |
| const TArray< FReferenceChain * > & | GetReferenceChains () const |
| |
| int64 | GetAllocatedSize () const |
| |
◆ FNodeReferenceInfo
◆ FObjectReferenceInfo
Convenience type definitions to avoid template hell
◆ EReferenceType
Type of reference
| Enumerator |
|---|
| Unknown | |
| Property | |
| AddReferencedObjects | |
| OuterChain | |
◆ FReferenceChainSearch() [1/3]
Constructs a new search engine and finds references to the specified object
◆ FReferenceChainSearch() [2/3]
◆ FReferenceChainSearch() [3/3]
Constructs a new search engine but does not find references to any objects until one of the PerformSearch*() functions is called
◆ ~FReferenceChainSearch()
| FReferenceChainSearch::~FReferenceChainSearch |
( |
| ) |
|
◆ FindAndPrintStaleReferencesToObject()
Attempts to find a reference chain leading to a world that should have been garbage collected
- Parameters
-
| ObjectToFindReferencesTo | World or its package (or any object from the world package that should've been destroyed) |
| Options | Determines how the stale references messages should be logged |
◆ FindAndPrintStaleReferencesToObjects()
◆ GetAllocatedSize()
| int64 FReferenceChainSearch::GetAllocatedSize |
( |
| ) |
const |
◆ GetObjectFlags()
| FString FReferenceChainSearch::GetObjectFlags |
( |
const FGCObjectInfo & |
InObject | ) |
|
|
static |
Returns a string with all flags (we care about) set on an object
◆ GetReferenceChains()
Returns all reference chains
◆ GetRootPath() [1/2]
Returns a string with a short report explaining the root path, will contain newlines
- Parameters
-
| ReferenceCallback | - function called when processing each reference, if true is returned the next reference will be processed otherwise printing will be aborted |
◆ GetRootPath() [2/2]
| FString FReferenceChainSearch::GetRootPath |
( |
UObject * |
TargetObject = nullptr | ) |
const |
Returns a string with a short report explaining the root path, will contain newlines
◆ PrintResults() [1/2]
Dumps results to log
- Parameters
-
| bDumpAllChains | - if set to false, the output will be trimmed to the first 100 reference chains |
- Returns
- The number of results printed.
◆ PrintResults() [2/2]
Dumps results to log
- Parameters
-
| ReferenceCallback | - function called when processing each reference, if true is returned the next reference will be processed otherwise printing will be aborted |
| bDumpAllChains | - if set to false, the output will be trimmed to the first 100 reference chains |
- Returns
- The number of results printed.
◆ SetVerbosityForPrint()
The documentation for this class was generated from the following files: