Enum Class GpuTimerBackend
- All Implemented Interfaces:
Serializable,Comparable<GpuTimerBackend>,Constable
GPU measurement mechanism effectively selected for a profiling session.
API stability: Experimental.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn asynchronous GL fence reports CPU-observed completion latency.No GPU measurement is active; CPU profiling remains available.One exclusive asynchronousGL_TIME_ELAPSEDquery delimits GPU execution.Two asynchronousGL_TIMESTAMPqueries delimit GPU execution. -
Method Summary
Modifier and TypeMethodDescriptionstatic GpuTimerBackendReturns the enum constant of this class with the specified name.static GpuTimerBackend[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No GPU measurement is active; CPU profiling remains available. -
TIMESTAMP_PAIR
Two asynchronousGL_TIMESTAMPqueries delimit GPU execution. -
TIME_ELAPSED_EXCLUSIVE
One exclusive asynchronousGL_TIME_ELAPSEDquery delimits GPU execution. -
FENCE_COMPLETION
An asynchronous GL fence reports CPU-observed completion latency.This backend is deliberately distinct from timer-query backends: it does not expose a GPU clock duration. It measures the latency from the CPU-side beginning of the profiled interval until a later non-blocking poll observes the end fence as complete.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-