init(identifier:displayName:value:polarity:)
Initializes a performance measurement for a single iteration with the value and polarity.
Declaration
convenience init(identifier: String, displayName: String, value: Measurement<Unit>, polarity: XCTPerformanceMeasurement.Polarity)Parameters
- identifier:
A unique identifier for the measurement.
- displayName:
A human-readable name for the measurement.
- value:
A value for the measurement.
- polarity:
A value that states whether larger or smaller measurements, relative to a set baseline, indicate better performance.