Instance Method

stopMeasuring()

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

Declaration

func stopMeasuring()

Discussion

Call this method to end the measurement of metrics by the measureMetrics(_:automaticallyStartMeasuring:for:) method. Measurement will end immediately after this method is called from within the measured block.

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.

class var defaultPerformanceMetrics: [XCTPerformanceMetric]

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

struct XCTPerformanceMetric

Performance metrics that can be measured by XCTest.