Navigation
API > API/Runtime > API/Runtime/RHI
Encapsulates GPU profiling logic and data. There's only one global instance of this struct so it should only contain global data, nothing specific to a frame.
| Name | FGPUProfiler |
| Type | struct |
| Header File | /Engine/Source/Runtime/RHI/Public/GPUProfiler.h |
| Include Path | #include "GPUProfiler.h" |
Syntax
struct FGPUProfiler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGPUProfiler() |
GPUProfiler.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FGPUProfiler() |
GPUProfiler.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bLatchedGProfilingGPU | bool | A latched version of GTriggerGPUProfile. | GPUProfiler.h | |
| bLatchedGProfilingGPUHitches | bool | A latched version of GTriggerGPUHitchProfile. | GPUProfiler.h | |
| bOriginalGEmitDrawEvents | bool | Original state of GEmitDrawEvents before it was overridden for profiling. | GPUProfiler.h | |
| bPreviousLatchedGProfilingGPUHitches | bool | The previous latched version of GTriggerGPUHitchProfile. | GPUProfiler.h | |
| bTrackingEvents | bool | Whether we are currently tracking perf events or not. | GPUProfiler.h | |
| bTrackingGPUCrashData | bool | Whether we are currently tracking data for gpucrash debugging or not | GPUProfiler.h | |
| CurrentEventNode | FGPUProfilerEventNode * | Current perf event node. | GPUProfiler.h | |
| CurrentEventNodeFrame | FGPUProfilerEventNodeFrame * | Current perf event node frame. | GPUProfiler.h | |
| GPUCrashDataDepth | int32 | Scope depth to record crash data depth. to limit perf/mem requirements | GPUProfiler.h | |
| GPUHitchDebounce | int32 | GPU hitch profile history debounce...after a hitch, we just ignore frames for a while | GPUProfiler.h | |
| StackDepth | int32 | GPUProfiler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FGPUProfilerEventNode * CreateEventNode
(
const TCHAR* InName, |
GPUProfiler.h | ||
bool IsProfilingGPU() |
GPUProfiler.h | ||
virtual void PopEvent() |
GPUProfiler.h | ||
virtual void PushEvent
(
const TCHAR* Name, |
GPUProfiler.h | ||
void RegisterGPUDispatch
(
FIntVector GroupCount |
GPUProfiler.h | ||
void RegisterGPUWork
(
uint32 NumPrimitives, |
GPUProfiler.h | ||
void RegisterGPUWork
(
uint32 NumDraws, |
GPUProfiler.h |