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 measure(metrics: [XCTMetric], block: () -> Void)

Measures the selected metrics for a block of code.

func measure(metrics: [XCTMetric], options: XCTMeasureOptions, block: () -> Void)

Measures the selected metrics, using the specified measurement options, for a block of code.

func measure(options: XCTMeasureOptions, block: () -> Void)

Measures the performance, using the specified measurement options, for a block of code.

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.

class var defaultMetrics: [XCTMetric]

An array of default metrics measured when measure(_:) is invoked.

class var defaultMeasureOptions: XCTMeasureOptions

The default measurement options used when measure(_:) is invoked.