XCTCPUMetric
public class XCTCPUMetric : XCTest.XCTCPUMetric, XCTMetric
A metric to record information about CPU activity during a performance test.
XCTCPUMetric
is a wrapper to
XCTest.XCTCPUMetric
.
-
Reports the measurements gathered for a metric between specific timestamps.
Stores the measurement results of
reportMeasurements(from:to:)
allowing you to make assertions to them.Declaration
Swift
public override func reportMeasurements(from startTime: XCTPerformanceMeasurementTimestamp, to endTime: XCTPerformanceMeasurementTimestamp) throws -> [XCTPerformanceMeasurement]
-
Declaration
Swift
override public func copy(with zone: NSZone? = nil) -> Any