![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DynamicStats.h>
Static Public Member Functions | |
| template<typename TStatGroup > | |
| static TStatId | CreateStatId (const FString &StatNameOrDescription) |
| template<typename TStatGroup > | |
| static TStatId | CreateStatIdInt64 (const FString &StatNameOrDescription, bool bIsAccumulator=false) |
| template<typename TStatGroup > | |
| static TStatId | CreateStatIdDouble (const FString &StatNameOrDescription, bool bIsAccumulator=false) |
| template<typename TStatGroup > | |
| static TStatId | CreateStatId (const FName StatNameOrDescription, bool IsTimer=true) |
| template<typename TStatGroup > | |
| static TStatId | CreateMemoryStatId (const FString &StatNameOrDescription, FPlatformMemory::EMemoryCounterRegion MemRegion=FPlatformMemory::MCR_Physical) |
| template<typename TStatGroup > | |
| static TStatId | CreateMemoryStatId (const FName StatNameOrDescription, FPlatformMemory::EMemoryCounterRegion MemRegion=FPlatformMemory::MCR_Physical) |
Helper class used to generate dynamic stat ids.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Create a new stat id and registers it with the stats system. This is the only way to create dynamic stat ids at runtime. Can be used only with FScopeCycleCounters.
Store the created stat id. Expensive method, avoid calling that method every frame.
Example: FDynamicStats::CreateStatId<STAT_GROUP_TO_FStatGroup( STATGROUP_UObjects )>( FString::Printf(TEXT("MyDynamicStat_%i"),Index) )
|
inlinestatic |
|
inlinestatic |