How to profile CPU usage using Instruments in Xcode

Oscar de la Hera Gomez
Two flowers that represent Instruments and Xcode side by side. Beneath them sits the text "Profile CPU."

To profile CPU usage in XCode, run the app then open the Debug Navigator and click on "Profile in Instruments."

Step One: Run the App

A screenshot of XCode highlighting the run button on the top center left.

In order to profile the CPU of an app, it must be run from XCode.

Step Two: Profile in Instruments

A screenshot of Xcode showing how if you select the debug navigator and click CPU, a button called "Profile in Instruments" becomes available.

Open the Debug Navigator, select CPU and click Profile in Instruments.

Step Three: Click Profile

A screenshot of Xcode showing the pop up that appears when you attempt to profile cpu in instruments. Click Profile.

In the pop up that appears, click Profile.

Step Four: Select CPU Usage

A screenshot of Instruments highlighting the CPU usage bar and the stack trace that appears beneath it.

In the Instruments App, select the moment within the CPU Usage bar that you wish to analyze. The results will appear in the stack trace beneath it.

Looking to learn more about things you can do with Swift and XCode ?

Search our blog to find educational content on learning how to use Swift and XCode.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details