Structure

XCTPerformanceMetric

Performance metrics that can be measured by XCTest.

Declaration

struct XCTPerformanceMetric

Topics

Measuring Elapsed Time

static let wallClockTime: XCTPerformanceMetric

A performance metric that records the time in seconds taken to execute a block of code.

Relationships

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.

class var defaultPerformanceMetrics: [XCTPerformanceMetric]

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