Ark Server API (ASA) - Wiki
|
#include <TrackedActivity.h>
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 FTrackedActivity & | GetEngineActivity () |
static FTrackedActivity & | GetIOActivity () |
static void | TraverseActivities (const TFunction< void(const FInfo &Info)> &Func) |
static void | RegisterEventListener (TUniqueFunction< void(EEvent Event, const FInfo &Info)> &&Func, uint32 MaxDepth=~0u) |
Private Member Functions | |
FTrackedActivity (const FTrackedActivity &O)=delete | |
FTrackedActivity & | operator= (const FTrackedActivity &O)=delete |
Private Attributes | |
void * | Internal |
Additional Inherited Members | |
Protected Member Functions inherited from TSharedFromThis< FTrackedActivity > | |
TSharedFromThis () | |
TSharedFromThis (TSharedFromThis const &) | |
FORCEINLINE TSharedFromThis & | operator= (TSharedFromThis const &) |
~TSharedFromThis () | |
Static Protected Member Functions inherited from TSharedFromThis< FTrackedActivity > | |
static FORCEINLINE TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
static FORCEINLINE 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
Definition at line 28 of file TrackedActivity.h.
Definition at line 43 of file TrackedActivity.h.
|
strong |
Enum used for Event listener to identify type of activity change
Enumerator | |
---|---|
Added | |
Removed | |
Changed |
Definition at line 100 of file TrackedActivity.h.
|
strong |
Enum to specify status type of activity In the new console, 'Activity' will make sure tracked activity appears to the left of the window 'Info' appears to the right and use less width. Typically use 'Info' for things that are more static
Enumerator | |
---|---|
Activity | |
Info | |
Debug |
Definition at line 36 of file TrackedActivity.h.
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
|
privatedelete |
|
static |
Process Engine Activity. General status of the Engine. Used by Engine initialization etc. By default, status light will stay yellow until main threads hits Tick update, then it turns green.
|
static |
I/O Activity.Shows current I / O operation.If plugin / game have their own I / O, scopes will need to be manually added
|
privatedelete |
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.
Updates status. If Index is ~0u entry at top of stack will be updated (which is the one showing)
|
private |
Definition at line 117 of file TrackedActivity.h.