Use a default template to profile from the Xcode build and product menus

If you need to profile your app with the same template regularly, you can set up your Xcode project to automatically use it whenever you initiate profiling.

  1. Launch Xcode, and open your app project.

  2. Open the scheme editor dialog by doing one of the following:

    • Select Edit Scheme from the target device list in the Xcode main window toolbar.

    • Choose Product > Scheme > Edit Scheme, or press Command–Less Than (<).

  3. Click Profile in the sidebar of the scheme editor dialog.

  4. From the Instrument pop-up menu, choose the desired profiling template.

  5. Click Close.

  6. Initiate profiling. See Profile your app from the Xcode Build and Product menus.

    Xcode builds your project, Instruments launches, and it begins profiling your app with the template you configured in the scheme editor.

SEE ALSORecord a traceProfile from the DockProfile from the Xcode gauges while debuggingProfile with the instruments command-line toolCollect and view data with the iprofiler command-line toolInstruments User Guide