Module |
|
Header |
/Engine/Source/Runtime/Core/Public/ProfilingDebugging/CookStats.h |
Include |
#include "ProfilingDebugging/CookStats.h" |
class FScopedStatsCounter
Used to accumulate cycles to a CallStats instance. Will also accumulate hit/miss stats in the dtor as well. If AddHit is not called, it will assume a miss. If AddMiss is called, it will convert the call to a miss.
Name | Description | |
---|---|---|
|
FScopedStatsCounter ( |
Starts the time, tracks the underlying stat it will update. |
Name | Description | |
---|---|---|
|
~FScopedStatsCounter() |
Stop the timer and flushes the stats to the underlying stats object. |
Name | Description | ||
---|---|---|---|
|
AddHit ( |
Call to indicate a Get or Put "cache hit". Exists calls by definition don't have hits or misses. |
|
|
AddHitOrMiss ( |
Call to indicate either a hit or miss. See AddHit and AddMiss. |
|
|
AddMiss ( |
Call to indicate a Get or Put "cache miss". |
|
|
Cancel() |
Used to cancel a timing, if we had to start one without knowing in advance if we must record it. |
|
|
TrackCyclesOnly() |
Used to track cycles, but not as a new hit/miss. |