I just had occasion to use Chris Uppal's "Space Breakdown" goodie. I see it
hasn't been mentioned in this group before, so I figured I'd say a few
words.
It is great! Thanks, Chris.
In brief, it lists the number of instances of each class in your image (and
also the approximate space that these take up). You can then "drill down"
on a particular class' instance(s), and take a look at what instances are
referencing it (or them). In my case, I found that after exiting my
program, there were still a bunch of instances of various classes laying
around, instances that I had expected would be freed on exiting the app.
Space Breakdown helped me see that these were being referenced by an
IdentityDictionary and so I added code to explicitly release the references,
and now all is well in Pleasantville.
This goodie and others can be accessed at
http://www.metagnostic.org/-- Louis