The Instruments Workflow
Instruments may seem like a complex app. It is, in that it can be used to gather all kinds of useful information about your app, and help you diagnose and resolve problems. However, the overall instrument workflow is relatively simple (see).
At a high level, it consists of the following main phases:
Set up a trace document containing the desired instruments and settings.
Target a device and an app to profile.
Profile the app.
Analyze the data captured during profiling.
Fix any problems in your source code.
Know When to Use Instruments
While testing your app with Xcode, consult the debug navigator gauges () before diving into Instruments. These gauges provide high-level information about your app’s CPU, memory, energy usage, and more. Often, they provide all the information you need to improve performance and resolve common problems quickly. Use Instruments when you need to perform more detailed analysis.