• 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: -finstrument-functions and program startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: -finstrument-functions and program startup


  • Subject: RE: -finstrument-functions and program startup
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Thu, 29 Jan 2009 14:04:05 -0500
  • Thread-topic: -finstrument-functions and program startup

Shawn Erickson wrote on Thursday, January 29, 2009 11:56 AM:

> DTrace is probe based. If a probe exists and is enabled it
> will fire and allow you to collect information.
>
> For example try the following in terminal...
>
> sudo dtrace -n 'syscall:::entry'
>
> With that said you need a provider that provides the probe
> points that you need. Apple has implemented many providers in
> 10.5. For example you can probe many aspects of message
> dispatch in the objective-c runtime or syscalls without any
> need to instrument your code. In terminal run "sudo dtrace
> -l" to see a list of providers in the system.
>
> I don't believe an Apple provider exist (or can exist) for
> general probing of C++ or C function entry and exit. You will
> have to instrument C++ methods and C function (aka make your
> own provider) to be able to use DTrace for what I think you
> are attempting to do.

...which is sort of what I'm doing now using -finstrument-functions.

BTW, I tried dladdr, but I ended up with the probe effect something awful.  I'm sticking to my original method of writing everything to syslog, and then parsing that out with a script.  Thanks for the help in trying to figure this out.

Thanks,
Cem Karan
_______________________________________________

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

References: 
 >-finstrument-functions and program startup (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: -finstrument-functions and program startup (From: Greg Parker <email@hidden>)
 >RE: -finstrument-functions and program startup (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: -finstrument-functions and program startup (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Sub-pixel font smoothing with CGBitmapContext
  • Next by Date: Re: NSView behaves different on 10.4 vs 10.5?
  • Previous by thread: Re: -finstrument-functions and program startup
  • Next by thread: Re: -finstrument-functions and program startup
  • Index(es):
    • Date
    • Thread