User interface elements often mimic real-world interactions, including real-time responses. Apps with a noticeable delay in user interaction — a hang — can break that illusion and create frustration. We’ll show you how to use Instruments to analyze, understand, and fix hangs in your apps on all Apple platforms. Discover how you can efficiently navigate an Instruments trace document, interpret trace data, and record additional profiling data to better understand your specific hang.
If you aren’t familiar with using Instruments, we recommend first watching "Getting Started with Instruments." And to learn about other tools that can help you discover hangs in your app, check out "Track down hangs with Xcode and on-device detection."
Explore related documentation, sample code, and more:
Analyzing responsiveness issues in your shipping app: https://developer.apple.com/documentation/Xcode/analyzing-responsiveness-issues-in-your-shipping-app
Improving app responsiveness: https://developer.apple.com/documentation/Xcode/improving-app-responsiveness
Meet RealityKit Trace: https://developer.apple.com/videos/play/wwdc2023/10099
Demystify SwiftUI performance: https://developer.apple.com/videos/play/wwdc2023/10160
Track down hangs with Xcode and on-device detection: https://developer.apple.com/videos/play/wwdc2022/10082
Visualize and optimize Swift concurrency: https://developer.apple.com/videos/play/wwdc2022/110350
Swift concurrency: Behind the scenes: https://developer.apple.com/videos/play/wwdc2021/10254
Understand and eliminate hangs from your app: https://developer.apple.com/videos/play/wwdc2021/10258
Stacks, Grids, and Outlines in SwiftUI: https://developer.apple.com/videos/play/wwdc2020/10031
Getting Started with Instruments: https://developer.apple.com/videos/play/wwdc2019/411
Explore UI animation hitches and the render loop: https://developer.apple.com/videos/play/tech-talks/10855
System Trace in Depth: https://developer.apple.com/videos/play/wwdc2016/411
More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp