<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/CPUInstructionsCountMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit020CPUInstructionsCountA0V"
  },
  "title" : "CPUInstructionsCountMetric"
}
-->

# CPUInstructionsCountMetric

A metric that measures the total number of CPU instructions the app executed.

```
struct CPUInstructionsCountMetric
```

## Discussion

This metric corresponds to the [`MetricResult.cpuInstructionsCount(_:)`](/documentation/MetricKit/MetricResult/cpuInstructionsCount(_:)) case. It appears only in [`intervalEntries`](/documentation/MetricKit/MetricReport/intervalEntries) and is not included in state entries.

## Topics

### Measurements

[`let value: Int`](/documentation/MetricKit/CPUInstructionsCountMetric/value)

The total number of CPU instructions the app executed during the reporting period.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

---

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)