Enumerations
The following enumerations are available globally.
-
Identifies the type of time you want to make assertion for in a performance test.
See moreXCTClockMetric
measures the total elapsed time during execution of the block argument tomeasure(metrics:block:)
. To make assertion to these statistics use any of the values ofXCTAssertClockIdentifier
.Declaration
Swift
public enum XCTAssertClockIdentifier
extension XCTAssertClockIdentifier: XCTAssertMetricIdentifier
-
Identifies the type of CPU statistic you want to make assertion for in a performance test.
See moreXCTCPUMetric
captures statistics about CPU activity while the block argument to ameasure(metrics:block:)
call runs in a performance test. To make assertion to these statistics use any of the values ofXCTAssertCpuIdentifier
.Declaration
Swift
public enum XCTAssertCpuIdentifier
extension XCTAssertCpuIdentifier: XCTAssertMetricIdentifier
-
Identifies the type of disk usage you want to make assertion for in a performance test.
See moreXCTStorageMetric
records the amount of data logically written to the disk in the block argument tomeasure(metrics:block:)
.To make assertion to these statistics use any of the values ofXCTAssertDiskIdentifier
.Declaration
Swift
public enum XCTAssertDiskIdentifier
extension XCTAssertDiskIdentifier: XCTAssertMetricIdentifier
-
Identifies the type of memory usage you want to make assertion for in a performance test.
See moreXCTMemoryMetric
compares the memory use before and after running the block argument to ameasure(metrics:block:)
, and reports the difference. To make assertion to these statistics use any of the values ofXCTAssertMemoryIdentifier
.Declaration
Swift
public enum XCTAssertMemoryIdentifier
extension XCTAssertMemoryIdentifier: XCTAssertMetricIdentifier