summaryrefslogtreecommitdiff
path: root/pod/perlhack.pod
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2002-11-16 22:18:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-11-16 21:23:15 +0000
commit5a6c59efdb6adbea810f12ca2ce4a559f52eca2e (patch)
treee3b44afaa3ba8467da5cfdc3b7fa515ff02cd453 /pod/perlhack.pod
parent7b2a0f841a9bbe7062cc61dc1e243a85576b8e52 (diff)
downloadperl-5a6c59efdb6adbea810f12ca2ce4a559f52eca2e.tar.gz
Re: [PATCH] optional code for debugging leaking scalars
Message-ID: <20021116221823.A23614@fdgroup.com> Documentation for change #18150. p4raw-link: @18150 on //depot/perl: eba0f806800ee6c16a404edf6a6aff3df57bdcb5 p4raw-id: //depot/perl@18152
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r--pod/perlhack.pod9
1 files changed, 8 insertions, 1 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index fbb7c9b456..023c243843 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -2064,7 +2064,14 @@ For example, for "third-degreed" Perl:
(Note: the mod_perl apache module uses also this environment variable
for its own purposes and extended its semantics. Refer to the mod_perl
-documentation for more information.)
+documentation for more information. Also, spawned threads set this
+variable to the value 2.)
+
+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.
=head2 Profiling