develooper Front page | perl.perl5.porters | Postings from July 2009

Re: dtrace support

Thread Previous | Thread Next
Dave Mitchell
July 20, 2009 06:03
Re: dtrace support
Message ID:
On Mon, Jul 20, 2009 at 01:37:19PM +0100, Andy Armstrong wrote:
> =head2 DTrace support
> On platforms where DTrace is available it may be enabled by configuring
> perl with -Dusedtrace. DTrace probes are available for subroutine entry
> (sub-entry) and subroutine exit (sub-exit). Here's a simple D script
> that uses them:
>   perl$target:::sub-entry, perl$target:::sub-return {
>     printf("%s %s (%s:%d)\n", probename == "sub-entry" ? "->" : "<-",
>               copyinstr(arg0), copyinstr(arg1), arg2);
>   }

Thanks. I've added that text (slightly edited) to the INSTALL file in blead,
and will add a brief link to it from perl5101delta.

I've also added a mention that -DDEBUGGING makes for a slower perl; that
didn't seem to be mentioned anywhere. Perhaps that might finally convince
Redhat/Fedora to stop using it ;-)

My get-up-and-go just got up and went.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About