summaryrefslogtreecommitdiff
path: root/pod/perldtrace.pod
diff options
context:
space:
mode:
authorShawn M Moore <code@sartak.org>2012-08-19 17:12:27 +0200
committerFather Chrysostomos <sprout@cpan.org>2012-08-28 07:13:56 -0700
commit32aeab29cd5db14b760cb77d37cd86d6878f0553 (patch)
tree232115738823a7ce0ced48c068a0af33b60bacf7 /pod/perldtrace.pod
parentfe83c362fb182e46bac02c1bd1cf0b8d82c9f1bf (diff)
downloadperl-32aeab29cd5db14b760cb77d37cd86d6878f0553.tar.gz
"loading-file" and "loaded-file" DTrace probes
Diffstat (limited to 'pod/perldtrace.pod')
-rw-r--r--pod/perldtrace.pod27
1 files changed, 26 insertions, 1 deletions
diff --git a/pod/perldtrace.pod b/pod/perldtrace.pod
index 60a93705a4..c5af7613bf 100644
--- a/pod/perldtrace.pod
+++ b/pod/perldtrace.pod
@@ -57,7 +57,7 @@ The C<phase-change> probe was added.
=item 5.18.0
-The C<op-entry> probe was added.
+The C<op-entry>, C<loading-file>, and C<loaded-file> probes weree added.
=back
@@ -112,6 +112,29 @@ still before the opcode itself is executed).
printf("About to execute opcode %s\n", copyinstr(arg0));
}
+=item loading-file(FILENAME)
+
+Fires when Perl is about to load an individual file, whether from
+C<use>, C<require>, or C<do>. This probe fires before the file is
+read from disk. The filename argument is converted to local filesystem
+paths instead of providing C<Module::Name>-style names.
+
+ :*perl*:loading-file {
+ printf("About to load %s\n", copyinstr(arg0));
+ }
+
+=item loaded-file(FILENAME)
+
+Fires when Perl has successfully loaded an individual file, whether
+from C<use>, C<require>, or C<do>. This probe fires after the file
+is read from disk and its contentss evaluated. The filename argument
+is converted to local filesystem paths instead of providing
+C<Module::Name>-style names.
+
+ :*perl*:loaded-file {
+ printf("Successfully loaded %s\n", copyinstr(arg0));
+ }
+
=back
=head1 EXAMPLES
@@ -179,6 +202,8 @@ still before the opcode itself is executed).
Exporter::Heavy::_rebuild_cache 5039
Exporter::import 14578
+=item
+
=back
=head1 REFERENCES