---
title: CPUInstructionsCountMetric
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/cpuinstructionscountmetric
---

# CPUInstructionsCountMetric

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

## Declaration

```swift
struct CPUInstructionsCountMetric
```

## Discussion

Discussion This metric corresponds to the MetricResult.cpuInstructionsCount(_:) case. It appears only in intervalEntries and is not included in state entries.

## Topics

### Measurements

- [value](metrickit/cpuinstructionscountmetric/value.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### CPU and memory metrics

- [CPUTimeMetric](metrickit/cputimemetric.md)
- [CPUExceptionDiagnostic](metrickit/cpuexceptiondiagnostic.md)
- [PeakMemoryMetric](metrickit/peakmemorymetric.md)
- [SuspendedMemoryMetric](metrickit/suspendedmemorymetric.md)
- [MemoryExceptionDiagnostic](metrickit/memoryexceptiondiagnostic.md)
