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
GPUCounterthis counter represents.Note
This is stored as an
intnot aGPUCounterto 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 valuereturned by this counter.- Type:
- unitΒΆ
The
CounterUnitfor the result value.- Type:
- 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.
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 shaderwas invoked.
- HSInvocationsΒΆ
Number of times a
hull shaderwas invoked.
- TCSInvocationsΒΆ
Number of times a
tessellation control shaderwas invoked.
- DSInvocationsΒΆ
Number of times a
domain shaderwas invoked.
- TESInvocationsΒΆ
Number of times a
tessellation evaluation shaderwas invoked.
- GSInvocationsΒΆ
Number of times a
domain shaderwas invoked.
- PSInvocationsΒΆ
Number of times a
pixel shaderwas invoked.
- FSInvocationsΒΆ
Number of times a
fragment shaderwas invoked.
- CSInvocationsΒΆ
Number of times a
compute shaderwas invoked.
- TSInvocationsΒΆ
Number of times a
task shaderwas invoked.
- ASInvocationsΒΆ
Number of times a
amplification shaderwas invoked.
- MSInvocationsΒΆ
Number of times a
mesh shaderwas 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:
Trueif it is an AMD private counter,Falseif 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:
Trueif it is an ARM private counter,Falseif itβs not.- Return type:
bool
- renderdoc.IsGenericCounter(c)ΒΆ
Check whether or not this is a Generic counter.
- Parameters:
c# (GPUCounter) β The counter.
- Returns:
Trueif it is a generic counter,Falseif 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:
Trueif it is an Intel private counter,Falseif 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:
Trueif it is an Nvidia private counter,Falseif itβs not.- Return type:
bool
- renderdoc.IsVulkanExtendedCounter(c)ΒΆ
Check whether or not this is a KHR counter.
- Parameters:
c# (GPUCounter) β The counter.
- Returns:
Trueif it is a Vulkan counter reported through the VK_KHR_performance_query extension,Falseif 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
counterthat produced this value, stored as an int.Note
This is stored as an
intnot aGPUCounterto allow for values that may not correspond to any of the predefined values if itβs a hardware-specific counter value.- Type:
int
- valueΒΆ
The value itself.
- Type:
- class renderdoc.CounterValueΒΆ
- class renderdoc.CounterValue(other: CounterValue)
A resulting value from a GPU counter. Only one member is valid, see
CounterDescription.- dΒΆ
A
doublevalue.- Type:
float
- fΒΆ
A
floatvalue.- Type:
float
- u32ΒΆ
A 32-bit unsigned integer.
- Type:
int
- u64ΒΆ
A 64-bit unsigned integer.
- Type:
int