This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #80548] perldelta for DTrace package name change
authorDavid Leadbeater <dgl@dgl.cx>
Fri, 17 Dec 2010 04:15:57 +0000 (20:15 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 17 Dec 2010 04:41:39 +0000 (20:41 -0800)
pod/perldelta.pod

index 82afad3..66b12d5 100644 (file)
@@ -109,6 +109,26 @@ This double setting arrangement is a stopgap until the reason for unwinding can
 be made properly introspectable.  C<$@> has never been a reliable indicator of
 this.
 
+=head2 DTrace probes now include package name
+
+The DTrace probes now include an additional argument (C<arg3>) which contains
+the package the subroutine being entered or left was compiled in.
+
+For example using the following DTrace script:
+
+  perl$target:::sub-entry
+  {
+      printf("%s::%s\n", copyinstr(arg0), copyinstr(arg3));
+  }
+
+and then running:
+
+  perl -e'sub test { }; test'
+
+DTrace will print:
+
+  main::test
+
 =head1 Security
 
 XXX Any security-related notices go here.  In particular, any security