About Tracing Allocation and Release of Object Tools

Discussion in 'iOS Programming' started by cthesky, Oct 31, 2011.

  1. cthesky, Oct 31, 2011
    Last edited: Oct 31, 2011

    cthesky macrumors member

    Joined:
    Aug 21, 2011
    #1
    Hi,

    Is there any tools used to trace when an object is allocated, and when an object is released?

    (For example, tools used to trace at which point an object is allocated and at which method/code, the object being released or deallocated.)

    Thanks. :)
     
  2. smashatom macrumors newbie

    Joined:
    Oct 29, 2011
    Location:
    Taipei
    #2
    Not sure if this is what you're looking for, but try using the "Analyze" feature on Xcode. There's also a new IDE for ObjC out called AppCode from www.jetbrains.com. I bought it just to use the "Analyze Code" feature. It gives a lot of false positives but generally useful for telling me if I've done something wrong on object allocation and release.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Have you tied using Instruments and the Allocations monitor?
     

Share This Page