Revision: 1390
Author: [email protected]
Date: Tue Nov 9 14:49:40 2010
Log: Note goto &sub (and thus AUTOLOAD and Memoize) as a cause of sub
timing discrepancies
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1390
Modified:
/trunk/lib/Devel/NYTProf.pm
=======================================
--- /trunk/lib/Devel/NYTProf.pm Thu Nov 4 07:04:36 2010
+++ /trunk/lib/Devel/NYTProf.pm Tue Nov 9 14:49:40 2010
@@ -641,8 +641,11 @@
What's happening here is that calls to other subroutines are being made but
NYTProf isn't able to determine the calling location correctly so the calls
-don't appear in the report in the correct place. (This is more common with
-older versions of perl. See below.)
+don't appear in the report in the correct place.
+
+Using an old version of perl is one cause (see below). Another is calling
+subroutines that exit via C<goto ⊂> - most frequently encountered in
+AUTOLOAD subs and code using the L<Memoize> module.
In general the overall subroutine timing is accurate and should be trusted
more
than the sum of statement or nested sub call timings.
--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]