Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FCookStats
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.
| Name | CallStats |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/CookStats.h |
| Include Path | #include "ProfilingDebugging/CookStats.h" |
Syntax
struct CallStats
Structs
| Name | Remarks |
|---|---|
| GameAndOtherThreadAccumulator | Contains a pair of accumulators, one for the game thread, one for the other threads. |
Enums
Public
| Name | Remarks |
|---|---|
| EHitOrMiss | One group of accumulators for hits and misses. |
| EStatType | Each hit or miss will contain these accumulator stats. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Accumulators | GameAndOtherThreadAccumulator | The actual accumulators. All access should be from the above public functions. | ProfilingDebugging/CookStats.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Accumulate
(
EHitOrMiss HitOrMiss, |
Make it easier to update an accumulator by providing strongly typed access to the 2D array. | ProfilingDebugging/CookStats.h | |
void Combine
(
const CallStats& Other |
ProfilingDebugging/CookStats.h | ||
int64 GetAccumulatedValue
(
EHitOrMiss HitOrMiss, |
Make it easier to access an accumulator using a uniform, stronly typed interface. | ProfilingDebugging/CookStats.h | |
int64 GetAccumulatedValueAnyThread
(
EHitOrMiss HitOrMiss, |
Make it easier to access an accumulator using a uniform, stronly typed interface. | ProfilingDebugging/CookStats.h | |
| Used to log the instance in a common way. | ProfilingDebugging/CookStats.h |