Game Development Reference
In-Depth Information
How to do it
Xcode includes tools with several graphical applications and command-line tools to collect
performance metrics. There are many available tools such as instruments, analysis tools,
monitoring tools, hardware analysis tools, additional command-line tools, and many more.
All are used to gather performance data, but there are a few of the them used more fre-
quently such as the in-built debug navigator inspector, instruments, and many more. So in
this section, you will learn about the debug navigator and the instrument's tools.
Debug navigator
In the project navigator of the Xcode project, there is a debug navigator at the sixth posi-
tion of the panel, which shows the CPU utilization and the Memory utilization of the run-
ning application.
The following are the steps involved in analyzing the utilization types of the app:
1. First of all, open any project or we can open our own project the Solution kit of
this chapter and press command + R to run the application FlyingSpaceship.
2. Click on the debug navigator; a panel like this appears:
3. Here, the total CPU utilization in percentage that is, 72% and Memory used that
is, 54 MB is shown in the panel. For further analysis of these metrics, we can click
on the respective rows to view the proper graphs.
In CPU there are three different graphs of sections shown:
• The CPU Utilization section:
Search WWH ::




Custom Search