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

# TotalFileSizeMetric

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

```
struct TotalFileSizeMetric
```

## Discussion

This metric corresponds to the [`MetricResult.totalFileSize(_:)`](/documentation/MetricKit/MetricResult/totalFileSize(_:)) 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 binaryFileSize: Measurement<UnitInformationStorage>`](/documentation/MetricKit/TotalFileSizeMetric/binaryFileSize)

The total size of disk space your app’s binary files occupy.

[`let cacheFolderSize: Measurement<UnitInformationStorage>`](/documentation/MetricKit/TotalFileSizeMetric/cacheFolderSize)

The total size of your application’s cache folder.

[`let cloneSize: Measurement<UnitInformationStorage>`](/documentation/MetricKit/TotalFileSizeMetric/cloneSize)

The total size of all clone files that are attributed to your app.

[`let dataFileSize: Measurement<UnitInformationStorage>`](/documentation/MetricKit/TotalFileSizeMetric/dataFileSize)

The total size of disk space your app uses for storing data files.

## Relationships

### Conforms To

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

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

[`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)