Module |
|
Header |
/Engine/Source/Runtime/Core/Public/ProfilingDebugging/CookStats.h |
Include |
#include "ProfilingDebugging/CookStats.h" |
struct CallStats
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 | Description | ||
---|---|---|---|
|
Accumulate ( |
Make it easier to update an accumulator by providing strongly typed access to the 2D array. |
|
|
GetAccumulatedValue ( |
Make it easier to access an accumulator using a uniform, stronly typed interface. |
|
|
LogStats ( |
Used to log the instance in a common way. |
Name |
Description |
|
---|---|---|
|
GameAndOtherThreadAccumulator |
Contains a pair of accumulators, one for the game thread, one for the other threads. |
Name |
Description |
|
---|---|---|
|
EHitOrMiss |
One group of accumulators for hits and misses. |
|
EStatType |
Each hit or miss will contain these accumulator stats. |