API Reference: Performance CountersΒΆ

This is the API reference for the functions, classes, and enums in the renderdoc module which represents the underlying interface that the UI is built on top of. For more high-level information and instructions on using the python API, see Python API.

CountersΒΆ

class renderdoc.CounterDescriptionΒΆ
class renderdoc.CounterDescription(other: CounterDescription)

Describes a GPU counter’s purpose and result value.

categoryΒΆ

The counter category. Can be empty for uncategorized counters.

Type:

str

counterΒΆ

The GPUCounter this counter represents.

Note

This is stored as an int not a GPUCounter to allow for values that may not correspond to any of the predefined values if it’s a hardware-specific counter value.

Type:

int

descriptionΒΆ

If available, a longer human-readable description of the value this counter measures.

Type:

str

nameΒΆ

A short human-readable name for the counter.

Type:

str

resultByteWidthΒΆ

The number of bytes in the resulting value.

Type:

int

resultTypeΒΆ

The type of value returned by this counter.

Type:

CompType

unitΒΆ

The CounterUnit for the result value.

Type:

CounterUnit

uuidΒΆ

The unique identifier for this counter that will not change across drivers or replays.

Type:

Uuid

class renderdoc.CounterUnit(value)ΒΆ

The unit that GPU counter data is returned in.

AbsoluteΒΆ

The value is an absolute value and should be interpreted as unitless.

SecondsΒΆ

The value is a duration in seconds.

PercentageΒΆ

The value is a floating point percentage value between 0.0 and 1.0.

RatioΒΆ

The value describes a ratio between two separate GPU units or counters.

BytesΒΆ

The value is in bytes.

CyclesΒΆ

The value is a duration in clock cycles.

HertzΒΆ

The value is a value in Hertz (cycles per second).

VoltΒΆ

The value is a value in Volts.

CelsiusΒΆ

The value is a value in Celsius.

class renderdoc.UuidΒΆ
class renderdoc.Uuid(other: Uuid)
class renderdoc.Uuid(word1: int, word2: int, word3: int, word4: int)

A 128-bit UUID.

wordsΒΆ

The UUID bytes as a tuple of four 32-bit integers.

Type:

Tuple[int,int,int,int]

Counter TypesΒΆ

class renderdoc.GPUCounter(value)ΒΆ

Pre-defined GPU counters that can be supported by a given implementation.

GPU counters actually available can be queried by ReplayController.EnumerateCounters(). If any in this list are supported they will be returned with these counter IDs. More counters may be enumerated with IDs in the appropriate ranges.

EventGPUDurationΒΆ

Time taken for this event on the GPU, as measured by delta between two GPU timestamps.

InputVerticesReadΒΆ

Number of vertices read by input assembler.

IAPrimitivesΒΆ

Number of primitives read by the input assembler.

GSPrimitivesΒΆ

Number of primitives output by a geometry shader.

RasterizerInvocationsΒΆ

Number of primitives that were sent to the rasterizer.

RasterizedPrimitivesΒΆ

Number of primitives that were rendered.

SamplesPassedΒΆ

Number of samples that passed depth/stencil test.

VSInvocationsΒΆ

Number of times a vertex shader was invoked.

HSInvocationsΒΆ

Number of times a hull shader was invoked.

TCSInvocationsΒΆ

Number of times a tessellation control shader was invoked.

DSInvocationsΒΆ

Number of times a domain shader was invoked.

TESInvocationsΒΆ

Number of times a tessellation evaluation shader was invoked.

GSInvocationsΒΆ

Number of times a domain shader was invoked.

PSInvocationsΒΆ

Number of times a pixel shader was invoked.

FSInvocationsΒΆ

Number of times a fragment shader was invoked.

CSInvocationsΒΆ

Number of times a compute shader was invoked.

TSInvocationsΒΆ

Number of times a task shader was invoked.

ASInvocationsΒΆ

Number of times a amplification shader was invoked.

MSInvocationsΒΆ

Number of times a mesh shader was invoked.

FirstAMDΒΆ

The AMD-specific counter IDs start from this value.

LastAMDΒΆ

The AMD-specific counter IDs end with this value.

FirstIntelΒΆ

The Intel-specific counter IDs start from this value.

LastIntelΒΆ

The Intel-specific counter IDs end with this value.

FirstNvidiaΒΆ

The nVidia-specific counter IDs start from this value.

LastNvidiaΒΆ

The nVidia-specific counter IDs end with this value.

FirstVulkanExtendedΒΆ

The Vulkan extended counter IDs start from this value.

LastVulkanExtendedΒΆ

The Vulkan extended counter IDs end with this value.

FirstARMΒΆ

The ARM-specific counter IDs start from this value.

LastARMΒΆ

The ARM-specific counter IDs end with this value.

renderdoc.IsAMDCounter(c)ΒΆ

Check whether or not this is an AMD private counter.

Parameters:

c# (GPUCounter) – The counter.

Returns:

True if it is an AMD private counter, False if it’s not.

Return type:

bool

renderdoc.IsARMCounter(c)ΒΆ

Check whether or not this is an ARM private counter.

Parameters:

c# (GPUCounter) – The counter.

Returns:

True if it is an ARM private counter, False if it’s not.

Return type:

bool

renderdoc.IsGenericCounter(c)ΒΆ

Check whether or not this is a Generic counter.

Parameters:

c# (GPUCounter) – The counter.

Returns:

True if it is a generic counter, False if it’s not.

Return type:

bool

renderdoc.IsIntelCounter(c)ΒΆ

Check whether or not this is an Intel private counter.

Parameters:

c# (GPUCounter) – The counter.

Returns:

True if it is an Intel private counter, False if it’s not.

Return type:

bool

renderdoc.IsNvidiaCounter(c)ΒΆ

Check whether or not this is an Nvidia private counter.

Parameters:

c# (GPUCounter) – The counter.

Returns:

True if it is an Nvidia private counter, False if it’s not.

Return type:

bool

renderdoc.IsVulkanExtendedCounter(c)ΒΆ

Check whether or not this is a KHR counter.

Parameters:

c# (GPUCounter) – The counter.

Returns:

True if it is a Vulkan counter reported through the VK_KHR_performance_query extension, False if it’s not.

Return type:

bool

ResultsΒΆ

class renderdoc.CounterResultΒΆ
class renderdoc.CounterResult(other: CounterResult)
class renderdoc.CounterResult(eventId: int, counter: GPUCounter, data: float)
class renderdoc.CounterResult(eventId: int, counter: GPUCounter, data: int)

The resulting value from a counter at an event.

counterΒΆ

The counter that produced this value, stored as an int.

Note

This is stored as an int not a GPUCounter to allow for values that may not correspond to any of the predefined values if it’s a hardware-specific counter value.

Type:

int

eventIdΒΆ

The eventId that produced this value.

Type:

int

valueΒΆ

The value itself.

Type:

CounterValue

class renderdoc.CounterValueΒΆ
class renderdoc.CounterValue(other: CounterValue)

A resulting value from a GPU counter. Only one member is valid, see CounterDescription.

dΒΆ

A double value.

Type:

float

fΒΆ

A float value.

Type:

float

u32ΒΆ

A 32-bit unsigned integer.

Type:

int

u64ΒΆ

A 64-bit unsigned integer.

Type:

int