|
|
static void | Clear () |
| |
|
static void | Capture (plProfilingSystem::ProfilingData &out_capture, bool bClearAfterCapture=false) |
| |
|
static void | SetDiscardThreshold (plTime threshold) |
| | Scopes are discarded if their duration is shorter than the specified threshold. Default is 0.1ms.
|
| |
|
static void | SetScopeTimeoutCallback (ScopeTimeoutDelegate callback) |
| | Sets a callback that is triggered when a profiling scope takes longer than desired.
|
| |
|
static void | StartNewFrame () |
| | Should be called once per frame to capture the timestamp of the new frame.
|
| |
|
static void | AddCPUScope (plStringView sName, const char *szFunctionName, plTime beginTime, plTime endTime, plTime scopeTimeout) |
| | Adds a new scoped event for the calling thread in the profiling system.
|
| |
|
static plUInt64 | GetFrameCount () |
| | Get current frame counter.
|
| |
|
static void | InitializeGPUData (plUInt32 uiGpuCount=1) |
| | Initialized internal data structures for GPU profiling data. Needs to be called before adding any data.
|
| |
|
static void | AddGPUScope (plStringView sName, plTime beginTime, plTime endTime, plUInt32 uiGpuIndex=0) |
| | Adds a GPU profiling scope in the internal event ringbuffer.
|
| |
Helper functionality of the profiling system.