Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Instruments: Leaks by Trevor Brown
Search
Triangle Cocoa
September 27, 2012
Programming
5
160
Instruments: Leaks by Trevor Brown
Trevor discusses using the leaks tool in Instruments from CocoaHeads September in Durham
Triangle Cocoa
September 27, 2012
Tweet
Share
More Decks by Triangle Cocoa
See All by Triangle Cocoa
App Store Secrets by Lawrence Ingraham
trianglecocoa
1
300
iPhone 5 and You! by Ameir Al-Zoubi
trianglecocoa
0
190
Grand Central Dispatch by Jody Hagins
trianglecocoa
2
490
Foundation Collections by Kevin Conner
trianglecocoa
3
270
Multithreaded Drawing by Eric Lanz
trianglecocoa
3
220
Unburdened ViewControllers by Jay Thrash
trianglecocoa
9
11k
Automated Acceptance Testing by Josh Johnson
trianglecocoa
4
190
Understanding UIResponder by Dirk Smith
trianglecocoa
5
340
Taming Xcode by Jay Thrash
trianglecocoa
3
150
Other Decks in Programming
See All in Programming
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
170
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
440
Vibe codingでおすすめの言語と開発手法
uyuki234
0
110
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
280
Navigating Dependency Injection with Metro
l2hyunwoo
1
180
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.7k
ゆくKotlin くるRust
exoego
1
160
Deno Tunnel を使ってみた話
kamekyame
0
230
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3k
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
120
愛される翻訳の秘訣
kishikawakatsumi
3
340
GISエンジニアから見たLINKSデータ
nokonoko1203
0
180
Featured
See All Featured
Abbi's Birthday
coloredviolet
0
3.7k
Prompt Engineering for Job Search
mfonobong
0
120
Color Theory Basics | Prateek | Gurzu
gurzu
0
150
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
92
How to Talk to Developers About Accessibility
jct
1
85
The Limits of Empathy - UXLibs8
cassininazir
1
190
Information Architects: The Missing Link in Design Systems
soysaucechin
0
710
What's in a price? How to price your products and services
michaelherold
246
13k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
400
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
210
Documentation Writing (for coders)
carmenintech
77
5.2k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
2
65
Transcript
INSTRUMENTS: LEAKS Trevor Brown Triangle CocoaHeads September 2012
What are leaks? How can we detect them? How can
we prevent them? Q&A Resources
Memory that... has been consumed (allocated), is no longer needed,
but cannot be returned to the OS for reuse or accessed by the program that allocated it. Is there a problem with that? Waste of resources Slowdown (unresponsive) Unexpected shutdown by OS WHAT ARE LEAKS? (and why they’re bad)
HOW CAN WE DETECT LEAKS? Static Analyzer (Xcode) Instruments Code
review
Launch your app with the profiler
None
None
None
None
None
Random audience member: “Thanks for the total waste of time,
Trevor. I use ARC. Like, all the time. Wow... Um, beer, anyone?”
RETAIN CYCLE
Object A Object B RETAIN CYCLE
None
LEAK PREVENTION Use ARC (convert) Avoid retain cycles (no strong-strong
relationships) Handle low-memory warnings from the OS Run the static analyzer
QUESTIONS?
RESOURCES Performing static code analysis Instruments User Guide ARC transition
notes
THANK YOU!