<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.15.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXCPUMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXCPUMetric"
  },
  "title" : "MXCPUMetric"
}
-->

# MXCPUMetric

An object representing metrics about the use of the CPU.

```
class MXCPUMetric
```

## Topics

### Reading CPU use

[`cumulativeCPUTime`](/documentation/MetricKit/MXCPUMetric/cumulativeCPUTime)

The total amount of CPU the app used.

[`cumulativeCPUInstructions`](/documentation/MetricKit/MXCPUMetric/cumulativeCPUInstructions)

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



---

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)