2. Instruments app
purpose
Track down difficult-to-reproduce problems in your code
Do performance analysis on your program
Automate testing of your code
Stress-test parts of your application
Perform general system-level troubleshooting
Gain a deeper understanding of how your code works
5. Leaks
Uses console leaks application (man leaks
will explain you everything)
A lot of applications contain leaks. Our target
is to avoid leaks in our applications :)
Quick example – Droplr application
6.
7. Allocations
Count each allocation in your application’s
session
May help with memory leaks even if Leaks
instrument doesn’t see them
Quick example – Hex Fiend application
8. Hex Fiend dissection
Choose Hex Fiend application as a target
Run Leaks and Allocations instruments
Create a new window and close it (5-7 times)
Leaks just keep silence while Allocations
instrument displays constant chart growth