willBeginMeasuring()
A method that XCTest calls when it’s ready to begin running the measured code.
Declaration
optional func willBeginMeasuring()Discussion
XCTest calls this method before it runs a test’s measure() or measure(metrics:) block. It calls the method once for each iteration of a performance test. Use this method to start gathering measurements.