Re: Leaks question
Re: Leaks question
- Subject: Re: Leaks question
- From: Lorenzo Thurman <email@hidden>
- Date: Mon, 10 Dec 2007 11:03:29 -0600
Rick Altherr wrote:
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:
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
Thanks, I think this is what I'm looking for. Leaks points to the
function, ObjectAlloc shows the various leaked objects, but I'm still
playing 20 questions figuring out which line or object is causing the leak.
_______________________________________________
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