Navigation
Unreal Engine C++ API Reference > Runtime > Core > ProfilingDebugging > FCookStats
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/CookStats.h |
Include | #include "ProfilingDebugging/CookStats.h" |
Syntax
struct CallStats
Remarks
Struct to hold stats for a call. The sub-structs and stuff look intimidating, but it is to unify the concept of accumulating any stat on the game or other thread, using raw int64 on the main thread, and thread safe accumulators on other threads.
Each call type that will be tracked will track call counts, call cycles, and bytes processed, grouped by hits and misses. Some stats will by definition be zero but it limits the branching in the tracking code.
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Accumulate
(
EHitOrMiss HitOrMiss, |
Make it easier to update an accumulator by providing strongly typed access to the 2D array. |
![]() |
void | ||
![]() ![]() |
int64 | GetAccumulatedValue
(
EHitOrMiss HitOrMiss, |
Make it easier to access an accumulator using a uniform, stronly typed interface. |
![]() ![]() |
int64 | GetAccumulatedValueAnyThread
(
EHitOrMiss HitOrMiss, |
Make it easier to access an accumulator using a uniform, stronly typed interface. |
![]() ![]() |
void | LogStats
(
FCookStatsManager::AddStatFuncRef AddStat, |
Used to log the instance in a common way. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
GameAndOtherThreadAccumulator | Contains a pair of accumulators, one for the game thread, one for the other threads. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EHitOrMiss | One group of accumulators for hits and misses. | |
![]() |
EStatType | Each hit or miss will contain these accumulator stats. |