Profile the performance and behavior of your app

Profile your app in Instruments to examine and optimize its behavior and performance.

Configure profiling options

  1. In the main window, choose Edit Scheme from the scheme menu in the toolbar.

  2. In the left column, select the Profile scheme action.

  3. At the top of the right column, click Info and choose an instrument from the Instrument pop-up menu. To defer this decision until profiling your app, choose Ask on Launch.

  4. If desired, click Arguments and specify any command-line arguments or environment variables for your app when it runs. By default, Xcode uses any arguments configured in the Run scheme action.

  5. If desired, click Options and enable testability. For macOS apps, you can also enable persistent state restoration, debugging while using the document Versions Browser, and a custom working directory.

  6. Click Close.

Profile your app

See alsoInstruments HelpInstruments Developer HelpConfigure schemes