Re: logging object creations and destructions
Re: logging object creations and destructions
- Subject: Re: logging object creations and destructions
- From: Brady Duga <email@hidden>
- Date: Fri, 15 Feb 2008 11:24:30 -0800
On Feb 15, 2008, at 11:15 AM, Torsten Curdt wrote:
"add a sampler instrument"? What do you mean by that?
I can set a mark and then can see the differences between the object
counts - also over time. But it still does not give me something like
01:00:00 NSURLConnection created
01:00:05 NSURLConnection destroyed
Are you using Instruments with the Object Allocations tool or are you
using MallocDebug? Sounds like MallocDebug. In Instruments you can
choose the diagram view of the ObjectAlloc tools and sort by
timestamp. No need for another tool to get traces, either. ObjectAlloc
can show you the allocations with stack frames. Or you can write a
custom DTrace script that will log allocations however you want (no
idea how - I've never found the need for a custom script as the built-
in tools do pretty much everything I need).
Of course, any of that does require 10.5. Perhaps you aren't running
Leopard?
--Brady (quietly waiting to be moderated off the list for OT posts)
_______________________________________________
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