Inspecting Performance with Instruments
Weâve looked at a few places where you can make an app faster, but what about the rest of the time? How can you make a method return faster if you donât know where itâs slow? You can guess, looking at the code with your brow furrowed until you decide to change something, but thatâs problematic. Not only could you be ignoring non-obvious performance problems, but in your attempt to fix the issue, you could actually make it slower!
What you need is data, and thatâs where Instruments, a performance-analysis and testing tool bundled with Xcode, comes in. Letâs try it out.
In Xcode, open TapALap and select Product â Profile or press âI. This builds your app in its Release configuration, ...
Get Developing for Apple Watch, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.