I want to debug my core animation code. However, the instruments profile doesn't exist, and it's not available in the library in instruments either.
I'm using Xcode 4. How do I install/access it and get it working?
Select the Time Profiler instrument and click Choose to open a new Instruments document. Click the record button at the top left to start recording and launch the app. macOS may ask for your password to authorize Instruments to analyze other processes.
How can I access Xcode Instruments? You can access the instruments by using Product ➔ Profile from the Xcode menu for which the shortcut handle is ⌘ + I . This will rebuild your product and opens the Xcode Instruments overview.
Instruments is a powerful performance analysis and testing tool that's part of Xcode toolset. Instruments can help you profile your apps on all platforms - iOS, macOS, watchOS, tvOS - in order to better understand and optimize their behavior and performance.
In simplest of terms, Time Profiler collects information about your app while it's running, determines how long each of your functions takes to run, and also figures out the percentage of CPU cycles each of your functions is using.
Core animation profiling is only available from a device. It won't show up if you're profiling the simulator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With