Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/Changelog.pm |
Statements | Executed 50 statements in 3.51ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
9 | 1 | 1 | 3.17ms | 3.18ms | basename_regexp | Path::IsDev::Heuristic::Changelog::
9 | 1 | 1 | 71µs | 16.5ms | matches | Path::IsDev::Heuristic::Changelog::
1 | 1 | 1 | 15µs | 15µs | BEGIN@1.69 | Module::Runtime::
9 | 1 | 1 | 12µs | 12µs | CORE:qr (opcode) | Path::IsDev::Heuristic::Changelog::
1 | 1 | 1 | 7µs | 18µs | BEGIN@2.70 | Module::Runtime::
1 | 1 | 1 | 7µs | 29µs | BEGIN@39 | Path::IsDev::Heuristic::Changelog::
1 | 1 | 1 | 7µs | 10µs | BEGIN@3.71 | Module::Runtime::
1 | 1 | 1 | 7µs | 8µs | BEGIN@4.72 | Module::Runtime::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 40µs | 1 | 15µs | # spent 15µs within Module::Runtime::BEGIN@1.69 which was called:
# once (15µs+0s) by Module::Runtime::require_module at line 1 # spent 15µs making 1 call to Module::Runtime::BEGIN@1.69 |
2 | 2 | 19µs | 2 | 29µs | # spent 18µs (7+11) within Module::Runtime::BEGIN@2.70 which was called:
# once (7µs+11µs) by Module::Runtime::require_module at line 2 # spent 18µs making 1 call to Module::Runtime::BEGIN@2.70
# spent 11µs making 1 call to strict::import |
3 | 2 | 18µs | 2 | 14µs | # spent 10µs (7+4) within Module::Runtime::BEGIN@3.71 which was called:
# once (7µs+4µs) by Module::Runtime::require_module at line 3 # spent 10µs making 1 call to Module::Runtime::BEGIN@3.71
# spent 4µs making 1 call to warnings::import |
4 | 2 | 59µs | 2 | 9µs | # spent 8µs (7+1) within Module::Runtime::BEGIN@4.72 which was called:
# once (7µs+1µs) by Module::Runtime::require_module at line 4 # spent 8µs making 1 call to Module::Runtime::BEGIN@4.72
# spent 1µs making 1 call to utf8::import |
5 | |||||
6 | package Path::IsDev::Heuristic::Changelog; | ||||
7 | 1 | 600ns | $Path::IsDev::Heuristic::Changelog::VERSION = '1.001000'; | ||
8 | # ABSTRACT: Determine if a path contains a Changelog (or similar) | ||||
9 | |||||
10 | 1 | 100ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
11 | |||||
- - | |||||
39 | 2 | 119µs | 2 | 51µs | # spent 29µs (7+22) within Path::IsDev::Heuristic::Changelog::BEGIN@39 which was called:
# once (7µs+22µs) by Module::Runtime::require_module at line 39 # spent 29µs making 1 call to Path::IsDev::Heuristic::Changelog::BEGIN@39
# spent 22µs making 1 call to Exporter::import |
40 | 1 | 2µs | 1 | 1.46ms | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::BaseName::MatchRegexp::File'; # spent 1.46ms making 1 call to Role::Tiny::With::with |
41 | |||||
- - | |||||
53 | # spent 3.18ms (3.17+12µs) within Path::IsDev::Heuristic::Changelog::basename_regexp which was called 9 times, avg 354µs/call:
# 9 times (3.17ms+12µs) by Path::IsDev::Heuristic::Changelog::matches at line 66, avg 354µs/call | ||||
54 | ## no critic (RegularExpressions::RequireLineBoundaryMatching) | ||||
55 | 9 | 3.20ms | 9 | 12µs | return qr/\AChange(s|log)(|[.][^.\s]+)\z/isx; # spent 12µs making 9 calls to Path::IsDev::Heuristic::Changelog::CORE:qr, avg 1µs/call |
56 | } | ||||
57 | |||||
- - | |||||
64 | # spent 16.5ms (71µs+16.4) within Path::IsDev::Heuristic::Changelog::matches which was called 9 times, avg 1.83ms/call:
# 9 times (71µs+16.4ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 1.83ms/call | ||||
65 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
66 | 9 | 31µs | 18 | 16.4ms | if ( $self->child_basename_matchregexp_file( $result_object, $self->basename_regexp ) ) { # spent 13.2ms making 9 calls to Path::IsDev::Role::Matcher::Child::BaseName::MatchRegexp::File::child_basename_matchregexp_file, avg 1.47ms/call
# spent 3.18ms making 9 calls to Path::IsDev::Heuristic::Changelog::basename_regexp, avg 354µs/call |
67 | $result_object->result(1); | ||||
68 | return 1; | ||||
69 | } | ||||
70 | 9 | 19µs | return; | ||
71 | } | ||||
72 | |||||
73 | 1 | 3µs | 1; | ||
74 | |||||
75 | __END__ | ||||
# spent 12µs within Path::IsDev::Heuristic::Changelog::CORE:qr which was called 9 times, avg 1µs/call:
# 9 times (12µs+0s) by Path::IsDev::Heuristic::Changelog::basename_regexp at line 55, avg 1µs/call |