UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnalyticsFlowTracker.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UObject/NameTypes.h"
8
10
11class UE_DEPRECATED(5.4, "Use FAnalyticsTracer instead.") FAnalyticsFlowTracker : FNoncopyable
12{
13public:
16
18 ANALYTICSET_API void SetProvider(TSharedPtr<IAnalyticsProvider> AnalyticsProvider);
19
21 ANALYTICSET_API void StartSession();
22
24 ANALYTICSET_API void EndSession();
25
28
31
34
37
40
43
46
49
50private:
51
52 struct FSubFlowData
53 {
58 FDateTime StartTime = 0;
59 FDateTime EndTime = 0;
60 FThreadId ThreadId = 0;
61 double TimeInSeconds = 0;
62 bool bSuccess = false;
63 int32 ScopeDepth;
65 };
66
67
68 struct FFlowData
69 {
70 FName FlowName = TEXT("None");
72 FDateTime StartTime = 0;
73 FDateTime EndTime = 0;
74 FThreadId ThreadId = 0 ;
75 double TimeInSeconds = 0;
78 };
79
81
84
90 FCriticalSection CriticalSection;
91 TSharedPtr<IAnalyticsProvider> AnalyticsProvider;
92
93 const uint32 FlowSchemaVersion = 4;
94 const FString FlowEventName = TEXT("Iteration.Flow");
95
97 const FString SubFlowEventName = TEXT("Iteration.SubFlow");
98};
99
100
uint32 FThreadId
Definition AnalyticsTracer.h:7
bool bSuccess
Definition ConvexDecomposition3.cpp:819
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::FPlatformRecursiveMutex FCriticalSection
Definition CriticalSection.h:53
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition UnrealTemplate.h:321
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition DateTime.h:76
Definition Guid.h:109