Re: -finstrument-functions and program startup
Re: -finstrument-functions and program startup
- Subject: Re: -finstrument-functions and program startup
- From: Shawn Erickson <email@hidden>
- Date: Thu, 29 Jan 2009 12:03:18 -0800
On Thu, Jan 29, 2009 at 11:25 AM, Benjamin Stiglitz <email@hidden> wrote:
>> 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.
>
> Actually, a probe of 'pidnnn:::entry' works just great (where nnn is the
> target process' pid.)
>
> Check out the pid provider documentation:
> <http://docs.sun.com/app/docs/doc/817-6223/chp-pid?q=dtrace+pid&a=view>
Only for code that has such probes compiled into functions / methods.
Apple has these compiled into many of the system frameworks but it
doesn't add them to your own code ...which was my point.
-Shawn
_______________________________________________
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