-
Detect and diagnose memory issues
Discover how you can understand and diagnose memory performance problems with Xcode. We'll take you through the latest updates to Xcode's tools, explore Metrics, check out the memgraph collection feature in XCTest, and learn how to catch regressions using a Performance XCTest.
Recursos
Videos relacionados
WWDC23
WWDC22
WWDC21
WWDC19
WWDC18
-
Buscar este video…
-
-
4:52 - Monitor memory performance with XCTests
// Monitor memory performance with XCTests func testSaveMeal() { let app = XCUIApplication() let options = XCTMeasureOptions() options.invocationOptions = [.manuallyStart] measure(metrics: [XCTMemoryMetric(application: app)], options: options) { app.launch() startMeasuring() app.cells.firstMatch.buttons["Save meal"].firstMatch.tap() let savedButton = app.cells.firstMatch.buttons["Saved"].firstMatch XCTAssertTrue(savedButton.waitForExistence(timeout: 30)) } }
-