Revision: 1279
Author: [email protected]
Date: Mon Jun 7 08:37:11 2010
Log: More notes re "Unable to determine line number" from 'preamble' in
toke.c
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1279
Modified:
/trunk/HACKING
=======================================
--- /trunk/HACKING Sat Jun 5 15:31:30 2010
+++ /trunk/HACKING Mon Jun 7 08:37:11 2010
@@ -423,4 +423,10 @@
(-e:0) nextstate
Unable to determine line number in -e
(-e:0)
const(PV("/usr/local/perl512-dev/lib/site_perl/5.12.0/sitecustomize.pl"\0))
+because it unshifts some code onto PL_preambleav (like -M/-V etc):
+"BEGIN { do {local $!; -f '%s/sitecustomize.pl'} &&
do '%s/sitecustomize.pl' }"
+which toke.c then concats into PL_linestr in the 'PL_preambled' block
+(where PL_perldb, PL_minus_E, PL_minus_n, PL_minus_p are handled).
Would be nice to find a way to silence the warnings in this case.
+Even better if the profiler could know it was profiling preamble code.
+I can't see an obvious way but I'm fairly clueless re toke.c
--
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]