Game Development Reference
In-Depth Information
• Samples of our app during runtime
• Stats related to garbage collected code
The following are the steps to use instruments:
1. First of all, open any project or we can open our own project from the solution kit
of this chapter and press command + R to run the application FlyingSpaceship.
2. Click on the CPU utilization section of debug navigator.
3. Then click on the Profile in Instruments button, which is at the topmost right
position in this section. Xcode will show a pop up asking us to transfer the same
session to instruments or to restart. We can select the one we wish to analyze.
4. Suppose we say transfer, then Xcode will open the instruments with a time pro-
filer inserted in its user interface by default showing running time of different
threads.
We can also run the instruments by pressing command + i and it will open instruments to
select the metrics to be analyzed similar to this:
Search WWH ::




Custom Search