On Tue, Dec 02, 2008 at 02:09:24PM +0000, Nicholas Clark wrote:
> 
> On Tue, Dec 02, 2008 at 01:44:40PM +0000, Nicholas Clark wrote:
> > 
> > Is the current svn HEAD of NYTProf actually flagging up to save the source
> > code from string evals?
> > 
> > I can't see it setting PL_perldb to PERLDBf_SAVESRC anywhere.
> 
> Even if I do this "manually" by setting $^P in a BEGIN block in my script,
> and this in the environment:
> export NYTPROF=file=/tmp/nytprof.out:addpid=1:savesrc=1
> I still see lines and lines of warnings such as
> 
> No file line range data for sub 'YAML::Base::__ANON__[(eval 
> 282)[/export/home/netbanx/base/usr/lib/perl5/site_perl/5.8.8/YAML/Base.pm:69]:8]'
> 
> So what am I doing wrong? (Or what isn't implemented yet?)

I'm still chasing down all the issues related to anon subs in string evals.
The (eval 282) had been renamed to (eval 0) in some places but not others.

It's top of my list to fix for the next release. I was working on a big
patch (at LPW08 actually :) but binned it in the end after deciding I
really needed to restructure the underlying data first.  (E.g., get rid
of sub_callers and hang the called-by data off ::SubInfo and add refs
for calls-to into ::FileInfo.)

String evals are a can of worms that need careful thought.
I'm mostly just feeling my way through the issues as I hit them.

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