Contents

MTLCounterSet

A collection of individual counters a GPU device supports for a counter set.

Declaration

protocol MTLCounterSet : NSObjectProtocol, Sendable

Overview

You can determine which counter sets a GPU supports by checking an MTLDevice instance’s counterSets property. A counter set’s name property typically matches one of the common counter set names that MTLCommonCounterSet defines. Check whether a GPU device supports a specific counter by comparing elements of the counters property with a counter’s common name that MTLCommonCounter defines.

For more information, see Confirming which counters and counter sets a GPU supports.

Topics

Identifying a counter set

Checking which counters a GPU supports

See Also

Counters and counter sets