Class

XCTClockMetric

A metric the test uses to measure the time elapsed in a performance test.

Declaration

@interface XCTClockMetric : NSObject

Overview

XCTClockMetric measures the total elapsed time during execution of the block argument to measureWithMetrics:block:. The metric records time monotonically, regardless of changes to the system clock. Its result includes both time spent executing code under test, and time when the CPU is idle or running other code.

Topics

Initializers

Relationships

Inherits From

Conforms To

See Also

Measurement Metrics

XCTMetric

A protocol that defines the methods that objects gathering metrics during performance tests must provide.

XCTCPUMetric

A metric the test uses to record information about CPU activity during a performance test.

XCTMemoryMetric

A metric the test uses to measure the physical memory used in a performance test.

XCTOSSignpostMetric

A metric the test uses to record the time it spends executing a signposted region of code.

XCTStorageMetric

A metric the test uses to record the amount of data logically written to storage during a performance test.