~/talk

Tuning your app using Xcode's Instruments

Talkat SwiftLeeds 2025 · 2025-10-07..10-08· [web-performance, ios]
slides:none on file

Xcode Instruments workflow that finds a 70‑node retain cycle (fixed with a single weak self change), uses the new Xcode 26 processor trace collects all CPU events (works on macOS but not the iPhone 17 Pro in this setup), and combines SwiftUI, Time Profiler and Hangs to pinpoint a millisecond‑range stall: a UIImage is recreated on every body render (causing UI hitches and slow saves because SwiftData runs on the main thread). Fixes: cache UIImage in state, replace conditional TextField creation with a ZStack/opacity, and use OSLog signposts to correlate traces.

AI-written summary · about

  1. 0:00Introduction
  2. 0:13About the speaker
  3. 1:50Building apps with hobbies
  4. 4:43Engineering performance
  5. 6:39Getting started with Instruments
  6. 8:29New features in Xcode 26
  7. 11:35Threading and concurrency
  8. 14:01Diagnosing app hangs
  9. 17:44Live debugging session
  10. 30:21Iterative performance fixing
  11. 32:41Advanced debugging techniques
  12. 35:55Final optimizations and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.