« lib/Devel/ebug/Plugin/StackTrace.pm
↑ Summary
blib/lib/Devel/ebug/Backend/Plugin/ActionPoints.pm »
| 1 | package Devel::ebug::Backend::Plugin::Filenames; | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 6 | our $VERSION = '0.69'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 6 | ▶ | sub register_commands { | ||||||||
|
Subroutine
register_commands: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 9 | 6 | return ( filenames => { sub => \&filenames } ); | |||||||||
| 10 | |||||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub filenames { | ||||||||
|
Subroutine
filenames: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 14 | 0 | my($req, $context) = @_; | |||||||||
| 15 | 0 | my %filenames; | |||||||||
| 16 | 0 | foreach my $sub (keys %DB::sub) { | |||||||||
| 17 | 0 | my($filename, $start, $end) = $DB::sub{$sub} =~ m/^(.+):(\d+)-(\d+)$/; | |||||||||
| 18 | 0 | ▶ | next if $filename =~ /^\(eval/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 0 | $filenames{$filename}++; | |||||||||
| 20 | } | ||||||||||
| 21 | 0 | return { filenames => [sort keys %filenames] }; | |||||||||
| 22 | } | ||||||||||
| 23 | 6 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||