25 , RecursionDepth(nullptr)
57 int32* RecursionDepth;
61#define SCOPE_SECONDS_COUNTER_BASE(Seconds) \
62 FSimpleScopeSecondsCounter SecondsCount_##Seconds(Seconds);
64#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE_BASE(Seconds) \
65 static int32 SecondsCount_##Seconds##_RecursionCounter = 0; \
66 FSimpleScopeSecondsCounter SecondsCount_##Seconds(Seconds, &SecondsCount_##Seconds##_RecursionCounter);
69#define SCOPE_SECONDS_COUNTER(Seconds) SCOPE_SECONDS_COUNTER_BASE(Seconds)
70#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE(Seconds) SCOPE_SECONDS_COUNTER_RECURSION_SAFE_BASE(Seconds)
72#define SCOPE_SECONDS_COUNTER(Seconds)
73#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE(Seconds)
117 if (Data.ScopeCounter == 0)
127 if (Data.ScopeCounter == 0)
129 checkf(StartTime >= 0.f,
TEXT(
"Counter is corrupt! Thinks it started before epoch"));
199#define SCOPE_LOG_TIME(Name,CumulativePtr) \
200 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, Name, CumulativePtr);
202#define SCOPE_LOG_TIME_IN_SECONDS(Name,CumulativePtr) \
203 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, Name, CumulativePtr, FScopeLogTime::ScopeLog_Seconds);
205#define SCOPE_LOG_TIME_FUNC() \
206 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, __FUNCTION__);
208#define SCOPE_LOG_TIME_FUNC_WITH_GLOBAL(CumulativePtr) \
209 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, __FUNCTION__,CumulativePtr);
211#define CONDITIONAL_SCOPE_LOG_TIME(Condition, Name,CumulativePtr) \
212 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, Name, CumulativePtr);
214#define CONDITIONAL_SCOPE_LOG_TIME_IN_SECONDS(Condition, Name,CumulativePtr) \
215 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, Name, CumulativePtr, FScopeLogTime::ScopeLog_Seconds);
217#define CONDITIONAL_SCOPE_LOG_TIME_FUNC(Condition) \
218 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, __FUNCTION__);
220#define CONDITIONAL_SCOPE_LOG_TIME_FUNC_WITH_GLOBAL(Condition, CumulativePtr) \
221 FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, __FUNCTION__,CumulativePtr);
#define check(expr)
Definition AssertionMacros.h:314
#define checkf(expr, format,...)
Definition AssertionMacros.h:315
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
TKeyValuePair< double, uint32 > FTotalTimeAndCount
Definition StatsMisc.h:145
Definition StatsMisc.h:110
FSecondsCounterScope(FSecondsCounterData &InData)
Definition StatsMisc.h:139
Definition StatsMisc.h:18
FSimpleScopeSecondsCounter(double &InSeconds, bool bInEnabled=true)
Definition StatsMisc.h:21
~FSimpleScopeSecondsCounter()
Definition StatsMisc.h:37
FSimpleScopeSecondsCounter(double &InSeconds, int32 *InRecursionDepth)
Definition StatsMisc.h:28
Definition AndroidPlatformTime.h:18
static double Seconds()
Definition AndroidPlatformTime.h:20
Definition StatsMisc.h:151
EScopeLogTimeUnits
Definition StatsMisc.h:153
@ ScopeLog_Milliseconds
Definition StatsMisc.h:155
@ ScopeLog_Seconds
Definition StatsMisc.h:156
@ ScopeLog_DontLog
Definition StatsMisc.h:154
CORE_API ~FConditionalScopeLogTime()
Definition StatsMisc.cpp:22
EScopeLogTimeUnits Units
Definition StatsMisc.h:180
const double StartTime
Definition StatsMisc.h:177
FString GetDisplayUnitsString() const
Definition StatsMisc.cpp:53
FTotalTimeAndCount * Cumulative
Definition StatsMisc.h:179
double GetDisplayScopedTime(double InScopedTime) const
Definition StatsMisc.cpp:43
const FString Name
Definition StatsMisc.h:178
Definition StatsMisc.h:187
FScopeLogTime(const WIDECHAR *InName, FTotalTimeAndCount *InCumulative=nullptr, EScopeLogTimeUnits InUnits=ScopeLog_Milliseconds)
Definition StatsMisc.h:188
FScopeLogTime(const ANSICHAR *InName, FTotalTimeAndCount *InCumulative=nullptr, EScopeLogTimeUnits InUnits=ScopeLog_Milliseconds)
Definition StatsMisc.h:193
Definition StatsMisc.h:84
static double GetTime()
Definition StatsMisc.h:101
static void ClearTime()
Definition StatsMisc.h:102
Definition UnrealTemplate.h:462