Instance Method

startMeasuring()

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

Declaration

func startMeasuring()

Discussion

Call this method to start the measurement of metrics by the measureMetrics(_:automaticallyStartMeasuring:for:) method. Measurement will start 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 stopMeasuring()

Ends 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.