---
title: XCTStorageMetric
framework: xctest
role: symbol
role_heading: Class
path: xctest/xctstoragemetric
---

# XCTStorageMetric

A metric to record the amount of data that a performance test logically writes to storage.

## Declaration

```swift
class XCTStorageMetric
```

## Overview

Overview XCTStorageMetric records the amount of data logically written to the disk in the block argument to measure(metrics:block:). The logical size of data written is the number of bytes in all requests to write to the disk. The logical size can be different from the size of physically written data, based on how the file system organizes data, and the fact that the disk controller replaces content in fixed-size blocks.

## Topics

### Initializers

- [init()](xctest/xctstoragemetric/init().md)
- [init(application:)](xctest/xctstoragemetric/init(application:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [XCTMetric](xctest/xctmetric.md)

## See Also

### Measurement Metrics

- [XCTMetric](xctest/xctmetric.md)
- [XCTCPUMetric](xctest/xctcpumetric.md)
- [XCTClockMetric](xctest/xctclockmetric.md)
- [XCTHitchMetric](xctest/xcthitchmetric.md)
- [XCTMemoryMetric](xctest/xctmemorymetric.md)
- [XCTOSSignpostMetric](xctest/xctossignpostmetric.md)
- [XCTApplicationLaunchMetric](xctest/xctapplicationlaunchmetric.md)
