class Profiler

The FidelityFX Cauldron Framework representation of the CPU/GPU profiler.

File location: framework/cauldron/framework/inc/render/profiler.h

Methods

Return type

Description

static Profiler*

CreateProfiler (bool enableCPUProfiling = true, bool enableGPUProfiling = true)
Profiler instance creation function. Implemented per api/platform to return the correct internal resource type.

bool

Returns true if CPU profiling is enabled.

bool

Returns true if GPU profiling is enabled..

const std::vector<TimingInfo >&

GetCPUTimings () const
Returns the vector of CPU timing information.

const std::vector<TimingInfo >&

GetGPUTimings () const
Returns the vector of GPU timing information.

int64_t

Returns the CPU tick count for the frame.

int64_t

Returns the GPU tick count for the frame.

void

Starts a new CPU timing frame and retrieves the CPU timings for past frames.

void

Starts a new GPU timing frame and retrieves the GPU timestamps for past frames.

void

EndFrame (CommandList * pCmdList)
Ends the current frame capture.

ProfileCapture

Begin (CommandList * pCmdList, const wchar_t* label)
Begins a capture on both CPU and GPU.

void

End (CommandList * pCmdList, ProfileCapture capture)
Ends a capture on both CPU and GPU.

ProfileCapture

BeginCPU (const wchar_t* label)
Begins a capture on CPU only.

void

Ends a capture on CPU only.

ProfileCapture

BeginGPU (CommandList * pCmdList, const wchar_t* label)
Begins a capture on GPU only.

void

EndGPU (CommandList * pCmdList, ProfileCapture capture)
Ends a capture on GPU only.

Detailed description

The FidelityFX Cauldron Framework representation of the CPU/GPU profiler. NOTE: This class is not thread safe.

Fields

Type

Description

static const uint32_t

s_MAX_TIMESTAMPS_PER_FRAME
Maximum number of timestamps that can be captured per frame.

Methods

CreateProfiler

Copied!

static Profiler* CreateProfiler (
    bool enableCPUProfiling = true,
    bool enableGPUProfiling = true
)

Profiler instance creation function. Implemented per api/platform to return the correct internal resource type.


IsCPUProfilingEnabled

Copied!

bool IsCPUProfilingEnabled () const

Returns true if CPU profiling is enabled.


IsGPUProfilingEnabled

Copied!

bool IsGPUProfilingEnabled () const

Returns true if GPU profiling is enabled..


GetCPUTimings

Copied!

const std::vector<TimingInfo >& GetCPUTimings () const

Returns the vector of CPU timing information.


GetGPUTimings

Copied!

const std::vector<TimingInfo >& GetGPUTimings () const

Returns the vector of GPU timing information.


GetCPUFrameTicks

Copied!

int64_t GetCPUFrameTicks () const

Returns the CPU tick count for the frame.


GetGPUFrameTicks

Copied!

int64_t GetGPUFrameTicks () const

Returns the GPU tick count for the frame.


BeginCPUFrame

Copied!

void BeginCPUFrame ()

Starts a new CPU timing frame and retrieves the CPU timings for past frames.


BeginGPUFrame

Copied!

void BeginGPUFrame (CommandList * pCmdList)

Starts a new GPU timing frame and retrieves the GPU timestamps for past frames.


EndFrame

Copied!

void EndFrame (CommandList * pCmdList)

Ends the current frame capture.


Begin

Copied!

ProfileCapture  Begin (CommandList * pCmdList, const wchar_t* label)

Begins a capture on both CPU and GPU.


End

Copied!

void End (CommandList * pCmdList, ProfileCapture  capture)

Ends a capture on both CPU and GPU.


BeginCPU

Copied!

ProfileCapture  BeginCPU (const wchar_t* label)

Begins a capture on CPU only.


EndCPU

Copied!

void EndCPU (ProfileCapture  capture)

Ends a capture on CPU only.


BeginGPU

Copied!

ProfileCapture  BeginGPU (CommandList * pCmdList, const wchar_t* label)

Begins a capture on GPU only.


EndGPU

Copied!

void EndGPU (CommandList * pCmdList, ProfileCapture  capture)

Ends a capture on GPU only.