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

# TotalFileCountMetric

A metric that measures the number of files attributed to the app.

```
struct TotalFileCountMetric
```

## Discussion

This metric corresponds to the [`MetricResult.totalFileCount(_:)`](/documentation/MetricKit/MetricResult/totalFileCount(_:)) case. It appears only in [`intervalEntries`](/documentation/MetricKit/MetricReport/intervalEntries) and is not included in state entries.

This value is a daily snapshot, not a cumulative sum over the reporting interval.

## Topics

### Measurements

[`let binaryFileCount: Int`](/documentation/MetricKit/TotalFileCountMetric/binaryFileCount)

The total number of your app’s binary files.

[`let dataFileCount: Int`](/documentation/MetricKit/TotalFileCountMetric/dataFileCount)

The total number of data files in your app’s container(s).

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)