How to do it...

  1. In these measurements, we will not write any code. So, you can pick any Xcode project you have to run these experiments on.
  2. First, we will try to measure the CPU usage of an app to see how our app uses the multiple cores/threads that we have.
  3. Open the Xcode project, and click on Profile as we did in the preceding recipe.
  4. Choose Time Profiler from the list of instruments:
  1. Choose the device/simulator and the app from the target device and process list.
  2. Click on the Record button at the top-left corner.
  3. Use the app that you want to record normally, and then click on the Stop button.
  4. After clicking on the stop button, the analysis ...

Get iOS Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.