On Fri, Mar 06, 2009 at 09:47:22AM -0800, Andy Grundman wrote:
> 
> I need to use savesrc=1 to profile on an embedded platform.  This is
> running 5.10.0, so I have also enabled use_db_sub=1.  However, no
> source data is saved to the .out file.  I tried it on a 5.8.8 OSX
> system as well, and neither one appears to save the source.  Am I
> doing something wrong?

Seems to work for me (with 5.10.0)...

Not enabled:

$ NYTPROF=trace=2:savesrc=0:use_db_sub=1 perl
-d:NYTProf -e 'use overload;' 2>&1 | grep 'New fid' && ls -l nytprof.out
New fid  1 (after  0:1   ) 2 e0:0 -e , with src
New fid  2 (after  1:138 ) 2 e0:0 
/usr/local/perl510-pure/lib/5.10.0/overload.pm 
New fid  3 (after  2:3   ) 2 e0:0 
/usr/local/perl510-pure/lib/5.10.0/warnings/register.pm 
New fid  4 (after  3:9   ) 2 e0:0 
/usr/local/perl510-pure/lib/5.10.0/warnings.pm 
-rw-r-----  1 timbo  timbo  1220  7 Mar 18:11 nytprof.out

Enabled:

$ NYTPROF=trace=2:savesrc=1:use_db_sub=1 perl
-d:NYTProf -e 'use overload;' 2>&1 | grep 'New fid' && ls -l
nytprof.outNew fid  1 (after  0:1   ) 2 e0:0 -e , with src
New fid  2 (after  1:138 ) 2 e0:0 
/usr/local/perl510-pure/lib/5.10.0/overload.pm , with src
New fid  3 (after  2:3   ) 2 e0:0 
/usr/local/perl510-pure/lib/5.10.0/warnings/register.pm , with src
New fid  4 (after  3:9   ) 2 e0:0 
/usr/local/perl510-pure/lib/5.10.0/warnings.pm , with src
-rw-r-----  1 timbo  timbo  7736  7 Mar 18:11 nytprof.out

Note the "with src" in the New fid lines, and the larger output file.

Tim.

--~--~---------~--~----~------------~-------~--~----~
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]
-~----------~----~----~----~------~----~------~--~---

Reply via email to