views:

49

answers:

1

I recently watched one of the WWDC 2010 videos: Session 311 - Advanced Memory Analysis with Instruments. The link is here.

There is an interesting example in the video on finding Abandoned Memory. They say that it is often more important to debug than leaks but can be more difficult.

Abandoned Memory is defined as "Accessible allocated memory that is never used again".

A leak is defined as "Allocated memory that can no longer be reached."

The primary way to find Abandoned Memory is to take heap shots using the Allocations instrument.

However, after determining that I have abandoned memory in my code, I have found that it is really difficult to find out exactly where it is coming from.

I am looking for some good tips or resources for finding Abandoned Memory.

Thanks!

A: 

possible duplicate:

avoiding finding and removing memory leaks in cocoa

mdonovan2010
Memory leaks are a very different sort of memory problem and are debugged different than abandoned memory. I am not looking for tips for debugging memory leaks which are usually quite easy to debug using the leaks instrument.
Jonah