<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCounterSet",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLCounterSet"
  },
  "title" : "MTLCounterSet"
}
-->

# MTLCounterSet

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

```
protocol MTLCounterSet : NSObjectProtocol, Sendable
```

## Overview

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

> Important:
> Some GPUs may only support some of the counters within a counter set.

For more information, see [Confirming which counters and counter sets a GPU supports](/documentation/Metal/confirming-which-counters-and-counter-sets-a-gpu-supports).

## Topics

### Identifying a counter set

[`name`](/documentation/Metal/MTLCounterSet/name)

The name of the GPU’s counter set instance.

### Checking which counters a GPU supports

[`counters`](/documentation/Metal/MTLCounterSet/counters)

An array of the counter instances a GPU device supports.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)