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

Re: dtrace support

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
July 20, 2009 06:03
Subject:
Re: dtrace support
Message ID:
20090720130249.GJ4204@iabyn.com
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About