summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2005-03-28 21:38:44 +0000
committerDave Mitchell <davem@fdisolutions.com>2005-03-28 21:38:44 +0000
commitfd0854ffd71f437c5e7d44b6f60361faf0bd6d15 (patch)
tree35b2cad6f2cc4e9a78429f91fc6dbed9b69c1f95 /pod
parent1af60bcb794810018aa77e3f4c7d128153067785 (diff)
downloadperl-fd0854ffd71f437c5e7d44b6f60361faf0bd6d15.tar.gz
expand -DDEBUG_LEAKING_SCALARS to instrument the creation of each SV
p4raw-id: //depot/perl@24088
Diffstat (limited to 'pod')
-rw-r--r--pod/perlhack.pod11
1 files changed, 7 insertions, 4 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index 5e188c08a0..78226bd662 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -2310,10 +2310,13 @@ documentation for more information. Also, spawned threads do the
equivalent of setting this variable to the value 1.)
If, at the end of a run you get the message I<N scalars leaked>, you can
-recompile with C<-DDEBUG_LEAKING_SCALARS>, which will cause
-the addresses of all those leaked SVs to be dumped; it also converts
-C<new_SV()> from a macro into a real function, so you can use your
-favourite debugger to discover where those pesky SVs were allocated.
+recompile with C<-DDEBUG_LEAKING_SCALARS>, which will cause the addresses
+of all those leaked SVs to be dumped along with details as to where each
+SV was originally allocated. This information is also displayed by
+Devel::Peek. Note that the extra details recorded with each SV increases
+memory usage, so it shouldn't be used in production environments. It also
+converts C<new_SV()> from a macro into a real function, so you can use
+your favourite debugger to discover where those pesky SVs were allocated.
=head2 Profiling