Class

XCTClockMetric

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

Declaration

class XCTClockMetric : NSObject

Overview

XCTClockMetric measures the total elapsed time during execution of the block argument to measure(metrics: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

See Also

Measurement Metrics

protocol XCTMetric

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

class XCTCPUMetric

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

class XCTMemoryMetric

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

class XCTOSSignpostMetric

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

class XCTStorageMetric

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