Instance Property

GPUEndTime

The host time, in seconds, when the GPU finished executing this command buffer.

Required.

Declaration

@property(readonly) CFTimeInterval GPUEndTime;

Discussion

This value can be used with the GPUStartTime property to obtain optional timestamp reflection data. Both properties are typically queried in the addCompletedHandler: callback, or after a call to the waitUntilCompleted method.

This value is 0.0 if the GPU has not yet executed the command buffer. The default value is 0.0.

See Also

Obtaining Status and Timestamps

status

The current stage in the lifetime of the command buffer.

Required.

MTLCommandBufferStatus

The stages in the lifetime of the command buffer.

error

The error that occurred when the command buffer was executed.

Required.

MTLCommandBufferErrorDomain

The error domain used by MTLCommandBuffer when returning command buffer execution errors.

MTLCommandBufferError

Error codes that indicate why the execution of the command buffer has failed. The error property contains the error code.

kernelStartTime

The host time, in seconds, when the CPU began scheduling this command buffer for execution.

Required.

kernelEndTime

The host time, in seconds, when the CPU finished scheduling this command buffer for execution.

Required.

GPUStartTime

The host time, in seconds, when the GPU began executing this command buffer.

Required.