How to observe an object's lifecycle

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

  1. BadWolf13 macrumors 6502

    Joined:
    Dec 17, 2009
    #1
    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

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    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