XCTMemoryMetric
public class XCTMemoryMetric : XCTest.XCTMemoryMetric, XCTMetric
A metric to record the physical memory that a performance test uses.
XCTMemoryMetric
is a wrapper to
XCTest.XCTMemoryMetric
.
-
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