View contents of ram

Discussion in 'Mac Programming' started by trainguy77, Nov 17, 2006.

  1. trainguy77 macrumors 68040

    Nov 13, 2003
    How do I find out what is currently in RAM for a particular application. I am trying to help fix a RAM issue in adium, however leaks does not show it. What else can we use to view everything in RAM for it?
  2. Catfish_Man macrumors 68030


    Sep 13, 2001
    Portland, OR
    ObjectAlloc + mallocstacklogging (google them and you should find information on it)

    Be warned: it's very very slow and uses a ton of ram to do this analysis. My machine can't really handle it, unfortunately.

    You can also use the instance counting mechanism I added to Adium (Check the #defines in AIAdium.h in the 1.0 source), but it will only count subclasses of AIObject, so if (for example) the issue is a bunch of NSDictionaries being kept around, it won't reveal that.

Share This Page