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.


Related pages

  • Visit the FidelityFX SDK product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNAâ„¢ 2 GPUs, AMD Ryzenâ„¢ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!