Author: tim.bunce
Date: Fri Jun 12 08:47:25 2009
New Revision: 768
Modified:
trunk/HACKING
Log:
Update a problem description in HACKING
Modified: trunk/HACKING
==============================================================================
--- trunk/HACKING (original)
+++ trunk/HACKING Fri Jun 12 08:47:25 2009
@@ -298,16 +298,21 @@
Investigate and fix "Unable to determine line number" cases. Here's one:
- $ NYTPROF=begin=1:blocks=1:trace=1 perl -d:NYTProf -Mstrict -e 1
- ...
- New fid 1 (after 0:1 ): -e /Users/timbo/perl/mods/nytprof-trunk/-e
- New fid 2 (after 1:3 ): /usr/local/perl58-i/lib/5.8.6/strict.pm
- at 3: EVAL in different file (-e,
/usr/local/perl58-i/lib/5.8.6/strict.pm) at
/usr/local/perl58-i/lib/5.8.6/strict.pm line 3.
- at 5: EVAL in different file (-e,
/usr/local/perl58-i/lib/5.8.6/strict.pm) at
/usr/local/perl58-i/lib/5.8.6/strict.pm line 5.
- at 25: EVAL in different file (-e,
/usr/local/perl58-i/lib/5.8.6/strict.pm) at
/usr/local/perl58-i/lib/5.8.6/strict.pm line 25.
- at 37: EVAL in different file (-e,
/usr/local/perl58-i/lib/5.8.6/strict.pm) at
/usr/local/perl58-i/lib/5.8.6/strict.pm line 37.
+ $ NYTPROF=trace=2 perl -d:NYTProf -Mstrict -e 1
+ Opened nytprof.out
+ NYTProf enable_profile (previously disabled) to nytprof.out
Unable to determine line number in -e.
+ NYTProf pid 22526: first statement line 0 of -e.
+ New fid 1 (after 0:1 ) 32 e0:0 -e has src,save src
+ New fid 2 (after 1:3 ) 02 e0:0
/usr/local/perl58-i/lib/5.8.6/strict.pm no src,nosave src
+ -> sub strict::bits from 2:25 (d1, oh 114t, sub 0s)
Unable to determine line number in -e.
+ Unable to determine line number in -e.
+ Unable to determine line number in -e.
+ -> sub strict::import from 1:0 (d1, oh 178t, sub 7.1e-05s)
+ Unable to determine line number in -e.
+
+The -Mstrict can be any module. Even a dummy .pm file that just
contains "1;\n"
Change from tracing via warn() to use our own function that, at least
initially,
calls warn() while temporarily disabling the __WARN__ hook.
--~--~---------~--~----~------------~-------~--~----~
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]
-~----------~----~----~----~------~----~------~--~---