How to observe an object's lifecycle

Discussion in 'Mac Programming' started by BadWolf13, May 26, 2010.

  1. BadWolf13 macrumors 6502

    Dec 17, 2009
    I've gotten to a point in debugging one of my programs that it would be best if I could, at any point in running the program, see all the objects that are being used by the program. With the Instruments tool that came with XCode, is there a way for me to do this? I've tried looking through it, but couldn't find anything.
  2. Catfish_Man macrumors 68030


    Sep 13, 2001
    Portland, OR
    The ObjectAlloc instrument can do this. It doesn't let you inspect the contents of their instance variables though, or the connections between them. I believe in a garbage collected app you can see the latter.

Share This Page