timbunce / devel-nytprof

Devel::NYTProf is a powerful feature-rich source code profiler for Perl. (Mostly in maintenance mode, so PRs are much more likely to be acted upon than Issues.)
http://blog.timbunce.org/tag/nytprof/
67 stars 51 forks source link

"/home/utils/perl-5.14/5.14.1-nothreads-64/bin/nytprofhtml -d -m" command aborts early #137

Closed Priyal3 closed 1 year ago

Priyal3 commented 5 years ago

57% ... Can't call method "inc" on an undefined value at /home/utils/perl-5.14/5.14.1-nothreads-64/lib/site_perl/5.14.1/x86_64-linux/Devel/NYTProf/FileInfo.pm line 430.

jkeenan commented 3 years ago

We will need more context to help you diagnose this problem. A new version of Devel-NYTProf (6.07) was released this morning. Some of the code has shifted around. Can you tell me whether the use of the inc method that was giving you problems is now located here?

435 sub filename_without_inc {
436     my $self = shift;
437     my $f    = [$self->filename];
438     strip_prefix_from_paths([$self->profile->inc], $f,  # <--- Is the problem here?
439         qr/(?: ^ | \[ | \sdefined\sat\s )/x
440     );
441     return $f->[0];
442 }

Or https://github.com/timbunce/devel-nytprof/blob/master/lib/Devel/NYTProf/FileInfo.pm#L438.

Thank you very much. Jim Keenan

jkeenan commented 1 year ago

We will need more context to help you diagnose this problem. A new version of Devel-NYTProf (6.07) was released this morning. Some of the code has shifted around. Can you tell me whether the use of the inc method that was giving you problems is now located here?

435 sub filename_without_inc {
436     my $self = shift;
437     my $f    = [$self->filename];
438     strip_prefix_from_paths([$self->profile->inc], $f,  # <--- Is the problem here?
439         qr/(?: ^ | \[ | \sdefined\sat\s )/x
440     );
441     return $f->[0];
442 }

Or https://github.com/timbunce/devel-nytprof/blob/master/lib/Devel/NYTProf/FileInfo.pm#L438.

Thank you very much. Jim Keenan

We have not heard back from the original poster in 2-1/2 years, so I'm closing this ticket.