An Example Using the Time Profiler
The best way to learn how to use Instruments is through example. In this section, you use the Time Profiler instrument to improve the performance of the CarValet app. To do so, you need to use a real device. Although Time Profiler works on the simulator, the desktop is so fast that possible issues appear as small blips.
The slower the device, the easier it is to spot issues. The examples shown in this section were done using an iPhone 4, though they show up on any iOS device: iPod touch, iPhone, or iPad. After opening the CarValet project, either yours or the one provided with the chapter sample code, run the Time Profiler by following these steps:
1. Use a USB cable to attach an iOS device that is set up for ...
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.