How can one guarantee (or at least come reasonably close) that one's app contains no memory leaks?
What are the specific steps one should follow please?
I tried Product -> Analyze
, which actua开发者_如何学编程lly found a leak, however both before and after i fixed it Product -> Profile -> Leaks
, none were shown.
In the image below, what should i be looking at? What is an indication of a leak?
Instruments finds leaks at runtime. You need click the "Record" button on left side of toolbar to run.
Check this link for more details on how to detect memory leaks with Instruments.
精彩评论