• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tracking object references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking object references


  • Subject: Re: Tracking object references
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 17 Feb 2013 09:50:19 -0800

On Sat, 12 Jan 2013 11:13:13 +0000, Mike Abdullah <email@hidden> said:
>
>The allocations instrument can show you all presently allocated objects. Find the object(s) you're interested in from that list and you can view its history of being retained and (auto)released, to figure out what is still holding onto it.

Actually, Instruments is no help in figuring out "what is still holding onto it". That's not entirely unreasonable, since in a very real sense *no* object is "holding onto" anything; there are only messages and the object's own internal retain count. But it sure would be nice if Instruments did give more info about this, so that one could try to track down which retains are balanced by which releases (and which retains, therefore, are unbalanced). A mere retain count over time, along with a call stack, just doesn't quite cut it somehow. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tracking object references
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Core Foundation Objects and Properties when using ARC
  • Next by Date: Re: Tracking object references
  • Previous by thread: Re: Core Foundation Objects and Properties when using ARC
  • Next by thread: Re: Tracking object references
  • Index(es):
    • Date
    • Thread