• 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: Leaks question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leaks question


  • Subject: Re: Leaks question
  • From: j o a r <email@hidden>
  • Date: Sun, 9 Dec 2007 12:21:38 -0800


On Dec 9, 2007, at 11:45 AM, Lorenzo Thurman wrote:

When using leaks, how do I determine exactly which object is being leaked? Leaks displays the function where the leak occurs, but is there a way to narrow things down to the object?


It also gives you the pointer to the object:

Leak: 0x1e72b0 size=48 instance of 'NSCFString', type ObjC, implemented in CoreFoundation

If that's not enough in itself, you would typically combine the output from leaks with using ObjectAlloc (or the Object Allocations instrument in Instruments) to find the exact memory management events sent to this object during its lifetime.

j o a r


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Leaks question
      • From: Rick Altherr <email@hidden>
References: 
 >Leaks question (From: Lorenzo Thurman <email@hidden>)

  • Prev by Date: Re: NewApplication
  • Next by Date: Re: why aren't xibs the default?
  • Previous by thread: Leaks question
  • Next by thread: Re: Leaks question
  • Index(es):
    • Date
    • Thread