Skip to content

Using the profiler

Ryan Hanson edited this page Jan 13, 2021 · 2 revisions

Get the project running in Xcode (Skip this if you already have it running in Xcode)

  1. Clone the repo
  2. Make sure CocoaPods is installed and up to date on your machine (sudo gem install cocoapods).
  3. Execute pod install the root directory of the project.
  4. Open the generated xcworkspace file (open Rectangle.xcworkspace).
  5. Make sure the app runs

Run the Profiler

  1. Select Product | Profile (cmd+I) in Xcode's menu.
  2. Select Time Profiler
  3. Hit the record button

When the app's CPU usage spikes and the app hangs, you can stop the profiler. Save the trace (File | Save) and send it to me at [email protected].