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

# MemoryExceptionDiagnostic

A diagnostic MetricKit generates when your app or extension terminates because it exceeds the memory limit.

```
struct MemoryExceptionDiagnostic
```

## Topics

### Call stack

[`let callStackTree: CallStackTree`](/documentation/MetricKit/MemoryExceptionDiagnostic/callStackTree)

The call stack tree that caused the memory exception.

## Relationships

### Conforms To

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

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

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

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

---

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)