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]'
which I infer come from this:
sub href_for_sub {
my ($self, $sub, %opts) = @_;
my ($file, $fid, $first, $last) =
$self->{profile}->file_line_range_of_sub($sub);
if (!$first) {
if (not defined $first) {
warn("No file line range data for sub '$sub'\n")
unless our $href_for_sub_no_data_warn->{$sub}++; # warn just
once
return "";
}
So what am I doing wrong? (Or what isn't implemented yet?)
Nicholas Clark
--~--~---------~--~----~------------~-------~--~----~
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]
-~----------~----~----~----~------~----~------~--~---