Type Property

defaultPerformanceMetrics

Identifies the performance metrics measured when measureBlock: is invoked.

Declaration

@property(class, readonly, copy) NSArray<XCTPerformanceMetric> *defaultPerformanceMetrics;

Discussion

This method returns XCTPerformanceMetric_WallClockTime by default. Subclasses of XCTestCase can override this method to change the behavior of measureBlock:.

See Also

Measuring Performance

measureBlock:

Measures the performance of a block of code.

measureMetrics:automaticallyStartMeasuring:forBlock:

Measures the performance of a block of code, optionally deferring the starting point for measurement.

startMeasuring

Starts the measurement of performance metrics within a block of code.

stopMeasuring

Ends the measurement of performance metrics within a block of code.

XCTPerformanceMetric

Performance metrics that can be measured by XCTest.