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

# MXCPUExceptionDiagnostic

An object representing a diagnostic report for a fatal or nonfatal CPU exception.

```
class MXCPUExceptionDiagnostic
```

## Overview

A CPU exception occurs when your app uses an excessive amount of CPU time over a short period.

## Topics

### Viewing the call stack

[`callStackTree`](/documentation/MetricKit/MXCPUExceptionDiagnostic/callStackTree)

The app call stack associated with the CPU exception.

### Viewing app CPU time

[`totalCPUTime`](/documentation/MetricKit/MXCPUExceptionDiagnostic/totalCPUTime)

The total CPU time used during the exception.

[`totalSampledTime`](/documentation/MetricKit/MXCPUExceptionDiagnostic/totalSampledTime)

The total time the app was sampled during the exception.



---

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)