Re: DTrace Questions
Re: DTrace Questions
- Subject: Re: DTrace Questions
- From: Eric Gorr <email@hidden>
- Date: Thu, 6 May 2010 17:29:22 -0400
On May 6, 2010, at 4:41 PM, Wade Tregaskis wrote:
>> (2) I know that, for example, iTunes is hidden from DTrace. I was just wondering if anyone knew how to do that for one's own applications...?
>
> Why?
Because I would like to know if it was (a) possible and, (b) if it is possible, how to do it.
Assume I have the same concern as Apple did when they decided to hide iTunes from DTrace.
>> (3) I can create my own custom DTrace probe which can take a char*, but apparently cannot create one that takes a const char *. Anyone know why?
>
> It's a known issue that will be resolved in a future release.
Cool. It did seem odd that it wasn't there.
So, do you know if there is some switch I can flip that will automatically add entry and exit probes for every function in my application or even just for specific sections of it?
Or, would I need to manually add the code to every function myself to get the entry and exit information? So, for example, would I need to do this for every function:
void somerandomfunction( void )
{
if ( MYENTRYPROBE_ENABLED() )
{
MYENTRYPROBE();
}
/* do stuff */
if ( MYEXITPROBE_ENABLED() )
{
MYEXITPROBE();
}
}
_______________________________________________
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