~/talk

How to instrument code like you mean it

Talkat Pragma Conference 2017 · 2017-10-12..10-13· [ios]
slides:none on file

Use Instruments to find exact causes: Core Animation shows color blended layers, misaligned images and offscreen rendering — fix by making UIGraphicsImageRenderer opaque, draw at natural pixel size, and set layer.shadowPath to avoid extra passes. Allocations reveals retained view controllers from scheduled timers — invalidate timers to break the retain cycle. Prefetching collection view cells removes jank and raises frame rates to ~110 FPS. A naive multithreaded image loader slows from 2.359s to 6.385s; switching from imageNamed cache to file loading cuts it to 0.471s using Time Profiler and system trace.

AI-written summary · about

  1. 0:00Introduction
  2. 1:44Why and when to instrument
  3. 3:51What to instrument
  4. 6:42Core animation instruments
  5. 14:47Allocations instrument
  6. 19:21Handling memory leaks
  7. 21:25Time profiler usage
  8. 23:58System trace and threading
  9. 28:25Conclusion and best practices
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.