Similar problem here, except I'm looking to get one memory peak value that isn't zero. This is using the sample/default project template:
final class MemoryMeasuringSampleAppUITests: XCTestCase {
func testLaunchPerformance() throws {
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
func testLaunchPerformanceMemory() throws {
measure(metrics: [XCTMemoryMetric()]) {
XCUIApplication().launch()
}
}
}
What's interesting is, I also see this message printed in my console several times while my test is running:
2022-10-17 09:42:22.344941-0500 MemoryMeasuringSampleAppUITests-Runner[21734:14123818] [Default] Unable to reset the peak interval footprint of pid 21734`
Any ideas?