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

    Aug 21, 2011

    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

    Oct 29, 2011
    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


    Staff Member

    Sep 2, 2004
    The Centennial State
    Have you tied using Instruments and the Allocations monitor?

Share This Page