Re: Determining if a function is being called
Re: Determining if a function is being called
- Subject: Re: Determining if a function is being called
- From: Jens Alfke <email@hidden>
- Date: Sat, 05 Jan 2013 12:16:55 -0800
On Jan 4, 2013, at 8:37 PM, Ken Thomases <email@hidden> wrote:
> On Jan 4, 2013, at 9:05 PM, Rick Mann wrote:
>
>> On Jan 4, 2013, at 18:53 , Joar Wingfors <email@hidden> wrote:
>>
>>> Have you considered using DTrace for this?
>>
>> Nope, I really don't know what the best tool is.
>
> sudo dtrace -n 'pid$target:someLibraryName::entry' -p <some PID>
Since Instruments is largely a GUI wrapper around DTrace, maybe there’s a way to do this using Instruments? I believe there is a command somewhere for making custom probes.
Also, before you go to this trouble, make sure the intrinsics you’re trying to detect aren’t inlined. There’s no general way to detect calls to an inlined function :)
—Jens
_______________________________________________
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