![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TrackedActivity.h>
Inheritance diagram for FTrackedActivity:Classes | |
| struct | FInfo |
Public Types | |
| enum class | EType { Activity , Info , Debug } |
| enum class | EEvent : int32 { Added = 1 , Removed = 2 , Changed = 3 } |
| using | ELight = ETrackedActivityLight |
Static Public Member Functions | |
| static CORE_API FTrackedActivity & | GetEngineActivity () |
| static CORE_API FTrackedActivity & | GetIOActivity () |
| static CORE_API void | TraverseActivities (const TFunction< void(const FInfo &Info)> &Func) |
| static CORE_API void | RegisterEventListener (TUniqueFunction< void(EEvent Event, const FInfo &Info)> &&Func, uint32 MaxDepth=~0u) |
| static CORE_API void | UnregisterEventListener () |
Additional Inherited Members | |
Protected Member Functions inherited from TSharedFromThis< FTrackedActivity > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Static Protected Member Functions inherited from TSharedFromThis< FTrackedActivity > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Tracked Activity is used to be able to visualize on a semi-high level what is going on in the process. It is very useful when wanting to show the status of online, or if the runtime is waiting on loading something When new console is enabled tracked activities show at the bottom of the window under the log Tracked Activities can be created/updated/destroyed on multiple threads
|
strong |
|
strong |
| FTrackedActivity::FTrackedActivity | ( | const TCHAR * | Name, |
| const TCHAR * | Status = TEXT(""), |
||
| ELight | Light = ELight::None, |
||
| EType | Type = EType::Activity, |
||
| int32 | SortValue = 100 |
||
| ) |
Ctor
| Name | Name of tracked activity |
| Status | Initial status of tracked activity |
| Light | for the activity. Will show as a dot in front of activity in console |
| Type | Decides where activity information show in console. Activity is to the left, Info to the right |
| SortValue | Decides in what order within type the activity will show in console. Lower value means earlier |
| FTrackedActivity::~FTrackedActivity | ( | ) |
Dtor
|
static |
|
static |
I/O Activity.Shows current I / O operation.If plugin / game have their own I / O, scopes will need to be manually added
| void FTrackedActivity::Pop | ( | ) |
| uint32 FTrackedActivity::Push | ( | const TCHAR * | Status, |
| bool | bShowParent = false, |
||
| ELight | Light = ELight::Inherit |
||
| ) |
Pushes new status on to tracked activity, will require a pop to get back to previous status ShowParent can be used to make sure Status of parent is visible in front of status of pushed scope.
|
static |
Register listener that can track adds, removes and changes when they happen. Listener will be called from the same thread as the event happens, so make sure listener is threadsafe.
|
static |
Traverses all FTrackedActivities in the order they were added.
|
static |
Updates status. If Index is ~0u entry at top of stack will be updated (which is the one showing)