• 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: logging object creations and destructions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: logging object creations and destructions
      • From: Torsten Curdt <email@hidden>
References: 
 >logging object creations and destructions (From: Torsten Curdt <email@hidden>)
 >Re: logging object creations and destructions (From: Brady Duga <email@hidden>)
 >Re: logging object creations and destructions (From: Torsten Curdt <email@hidden>)
 >Re: logging object creations and destructions (From: Jens Alfke <email@hidden>)
 >Re: logging object creations and destructions (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: Uncaught exceptions thrown by Cocoa documented anywhere?
  • Next by Date: Re: PDFKit and PDF Overprint
  • Previous by thread: Re: logging object creations and destructions
  • Next by thread: Re: logging object creations and destructions
  • Index(es):
    • Date
    • Thread