---
title: MetalFrameRateMetric
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/metalframeratemetric
---

# MetalFrameRateMetric

A metric that measures Metal frame rate statistics for a specific CAMetalLayer.

## Declaration

```swift
struct MetalFrameRateMetric
```

## Discussion

Discussion This metric corresponds to the MetricResult.metalFrameRate(_:) case. It appears only in intervalEntries and is not included in state entries. Each MetalFrameRateMetric corresponds to a single CAMetalLayer, identified by layerName. When your app has multiple Metal layers, the report may include multiple instances of this metric case, one for each layer.

## Topics

### Frame rate

- [framesPerSecond](metrickit/metalframeratemetric/framespersecond.md)
- [frameCount](metrickit/metalframeratemetric/framecount.md)
- [activeDrawingDuration](metrickit/metalframeratemetric/activedrawingduration.md)

### Layer

- [layerName](metrickit/metalframeratemetric/layername.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

### GPU and display metrics

- [GPUTimeMetric](metrickit/gputimemetric.md)
- [PixelLuminanceMetric](metrickit/pixelluminancemetric.md)
- [AveragePixelLuminance](metrickit/averagepixelluminance.md)
