in reply to Re: NYTProf line report failure
in thread NYTProf line report failure
collapse_sibling_evals: nested evals in (eval 2695) collapse_sibling_evals: nested evals in (eval 2698)Debugging nytprof is over my head but I can see from the comments around line 430 in /Devel/NYTProf/FileInfo.pm that someone anticipated problems. How would you patch this?
# Should return the filename that the application used when loading th +e file # For evals should remove the @INC portion from within the "(eval N)[$ +path]" # and similarly for Class::MOP #line evals "... defined at $path". # This is a bit of a fudge. Filename handling should be improved in th +e profiler. sub filename_without_inc { my $self = shift; my $f = [$self->filename]; strip_prefix_from_paths([$self->profile->inc], $f, # line 430 qr/(?: ^ | \[ | \sdefined\sat\s )/x ); return $f->[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: NYTProf line report failure
by swl (Prior) on Mar 12, 2020 at 02:49 UTC |