Debug Gauges: Mini “Instruments”

In Figure-14-9, two items are at the top level of the navigation pane, CPU and Memory. These debug gauges are like mini instruments that are updated with statistics for your app. They introduce very little overhead and are a great way to spot when it is time to profile for more detail. Other gauges are available depending on the type of app and the target.

The CPU gauge, shown in Figure 14-11, is good for catching performance problems before they become problems. If you find performance a bit sluggish, take a quick look with the CPU gauge. Spikes indicate that you might need to do something more efficiently. Launching Instruments to hone in on the issue is as easy as clicking the Profile in Instruments button ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.