In this recipe, we will look at the Instruments application provided with Xcode. The Instruments application can be used to track memory issues and performance problems within your application.
Instruments can be launched from within Xcode by choosing the Run menu and then choosing Run with Performance Tool.
If you want to run Instruments outside of Xcode, you can find it in the Applications
folder within the Developer
folder of your Xcode installation.
1. In Xcode, select the Run menu, then select Run with Performance Tool and choose a performance tool that you want to use. Most likely, you will want to use the Leaks tool to track down memory leaks.
2. Instruments will launch and start your application and begin sampling information from your application.
3. When you have collected enough information, click on the Stop button.
4. Without exiting Instruments, go back to Xcode and make any changes and rebuild your application.
5. You...