Type Property

defaultPerformanceMetrics

Identifies the performance metrics measured when measure(_:) is invoked.

Declaration

class var defaultPerformanceMetrics: [XCTPerformanceMetric] { get }

Discussion

This method returns wallClockTime by default. Subclasses of XCTestCase can override this method to change the behavior of measure(_:).

See Also

Measuring Performance

func measure(() -> Void)

Measures the performance of a block of code.

func measureMetrics([XCTPerformanceMetric], automaticallyStartMeasuring: Bool, for: () -> Void)

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

func startMeasuring()

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

func stopMeasuring()

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

struct XCTPerformanceMetric

Performance metrics that can be measured by XCTest.