Capturing Steps to Reproduce a Memory Leak
We’re going to try to track down the memory leak and capture our steps with UI Automation. We want to end up with a script that we can run repeatedly while we dig into the Objective-C code to figure out where the leak might be.
We first learned about capturing automation steps back in Chapter 1, UI Automation Overview. The capturing mechanism doesn’t always record everything we do, but it does get us most of the way there. This helps quickly build one-off scripts while you’re trying to re-create a complex problem.
Select the UI Automation instrument in the window’s track view, click the Add button in the Scripts section of the left sidebar, and choose Create to start a new blank script in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access