Instruments Basics: Time Profiler
Recording CPU usage, reading call trees and finding hot spots in your code.
Why Instruments?
Xcode Instruments is a performance analysis suite. Time Profiler shows you where CPU time is being spent so you can find hot spots.
// Launch: Xcode → Product → Profile (Cmd+I)
// Choose "Time Profiler" template
// Run your app and exercise the slow pathRecording a Trace
Click the record button in Instruments, exercise the feature you want to profile, then stop recording.
// 1. Connect device or use simulator
// 2. Launch with Profile (Cmd+I)
// 3. Select Time Profiler
// 4. Record for 5-30 seconds
// 5. Stop and analyzeAll lessons in this course
- Instruments Basics: Time Profiler
- Allocations and Leaks Instruments
- Main Thread Checker and Hangs
- Optimising Hot Paths: COW, Inlining and Specialisation