Re: Leaks question
Re: Leaks question
- Subject: Re: Leaks question
- From: Rick Altherr <email@hidden>
- Date: Mon, 10 Dec 2007 08:59:50 -0800
On Dec 9, 2007, at 12:21 PM, j o a r wrote:
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:
@apple.com
This email sent to email@hidden
Or you can use Shark's Malloc Trace config to get a profile of leaked
objects. It has a few more limitations in that it can only see leaks
that happened during the session recorded, but the output shows which
line of source cause the allocation of the leak.
--
Rick Altherr
Architecture and Performance Group
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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