UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StatsMisc.h File Reference

Go to the source code of this file.

Classes

class  FSimpleScopeSecondsCounter
 
struct  FSecondsCounterData
 
class  FSecondsCounterScope
 
struct  FConditionalScopeLogTime
 
struct  FScopeLogTime
 

Macros

#define SCOPE_SECONDS_COUNTER_BASE(Seconds)    FSimpleScopeSecondsCounter SecondsCount_##Seconds(Seconds);
 
#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE_BASE(Seconds)
 
#define SCOPE_SECONDS_COUNTER(Seconds)
 
#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE(Seconds)
 
#define SCOPE_LOG_TIME(Name, CumulativePtr)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, Name, CumulativePtr);
 
#define SCOPE_LOG_TIME_IN_SECONDS(Name, CumulativePtr)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, Name, CumulativePtr, FScopeLogTime::ScopeLog_Seconds);
 
#define SCOPE_LOG_TIME_FUNC()    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, __FUNCTION__);
 
#define SCOPE_LOG_TIME_FUNC_WITH_GLOBAL(CumulativePtr)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(true, __FUNCTION__,CumulativePtr);
 
#define CONDITIONAL_SCOPE_LOG_TIME(Condition, Name, CumulativePtr)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, Name, CumulativePtr);
 
#define CONDITIONAL_SCOPE_LOG_TIME_IN_SECONDS(Condition, Name, CumulativePtr)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, Name, CumulativePtr, FScopeLogTime::ScopeLog_Seconds);
 
#define CONDITIONAL_SCOPE_LOG_TIME_FUNC(Condition)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, __FUNCTION__);
 
#define CONDITIONAL_SCOPE_LOG_TIME_FUNC_WITH_GLOBAL(Condition, CumulativePtr)    FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, __FUNCTION__,CumulativePtr);
 

Typedefs

typedef TKeyValuePair< double, uint32FTotalTimeAndCount
 

Macro Definition Documentation

◆ CONDITIONAL_SCOPE_LOG_TIME

#define CONDITIONAL_SCOPE_LOG_TIME (   Condition,
  Name,
  CumulativePtr 
)     FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, Name, CumulativePtr);

◆ CONDITIONAL_SCOPE_LOG_TIME_FUNC

#define CONDITIONAL_SCOPE_LOG_TIME_FUNC (   Condition)     FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, __FUNCTION__);

◆ CONDITIONAL_SCOPE_LOG_TIME_FUNC_WITH_GLOBAL

#define CONDITIONAL_SCOPE_LOG_TIME_FUNC_WITH_GLOBAL (   Condition,
  CumulativePtr 
)     FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, __FUNCTION__,CumulativePtr);

◆ CONDITIONAL_SCOPE_LOG_TIME_IN_SECONDS

#define CONDITIONAL_SCOPE_LOG_TIME_IN_SECONDS (   Condition,
  Name,
  CumulativePtr 
)     FConditionalScopeLogTime PREPROCESSOR_JOIN(ScopeLogTime,__LINE__)(Condition, Name, CumulativePtr, FScopeLogTime::ScopeLog_Seconds);

◆ SCOPE_LOG_TIME

◆ SCOPE_LOG_TIME_FUNC

◆ SCOPE_LOG_TIME_FUNC_WITH_GLOBAL

◆ SCOPE_LOG_TIME_IN_SECONDS

◆ SCOPE_SECONDS_COUNTER

#define SCOPE_SECONDS_COUNTER (   Seconds)

◆ SCOPE_SECONDS_COUNTER_BASE

#define SCOPE_SECONDS_COUNTER_BASE (   Seconds)     FSimpleScopeSecondsCounter SecondsCount_##Seconds(Seconds);

Macro for updating a seconds counter without creating new scope.

◆ SCOPE_SECONDS_COUNTER_RECURSION_SAFE

#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE (   Seconds)

◆ SCOPE_SECONDS_COUNTER_RECURSION_SAFE_BASE

#define SCOPE_SECONDS_COUNTER_RECURSION_SAFE_BASE (   Seconds)
Value:
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
Definition StatsMisc.h:18

Typedef Documentation

◆ FTotalTimeAndCount

Key contains total time, value contains total count.