| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/Makefile.pm |
| Statements | Executed 50 statements in 374µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 9 | 1 | 1 | 62µs | 2.62ms | Path::IsDev::Heuristic::Makefile::matches |
| 1 | 1 | 1 | 20µs | 20µs | Module::Runtime::BEGIN@1.97 |
| 9 | 1 | 1 | 11µs | 11µs | Path::IsDev::Heuristic::Makefile::files |
| 1 | 1 | 1 | 10µs | 45µs | Path::IsDev::Heuristic::Makefile::BEGIN@27 |
| 1 | 1 | 1 | 9µs | 15µs | Module::Runtime::BEGIN@3.99 |
| 1 | 1 | 1 | 9µs | 25µs | Module::Runtime::BEGIN@2.98 |
| 1 | 1 | 1 | 9µs | 11µs | Module::Runtime::BEGIN@4.100 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 54µs | 1 | 20µs | # spent 20µs within Module::Runtime::BEGIN@1.97 which was called:
# once (20µs+0s) by Module::Runtime::require_module at line 1 # spent 20µs making 1 call to Module::Runtime::BEGIN@1.97 |
| 2 | 2 | 30µs | 2 | 40µs | # spent 25µs (9+15) within Module::Runtime::BEGIN@2.98 which was called:
# once (9µs+15µs) by Module::Runtime::require_module at line 2 # spent 25µs making 1 call to Module::Runtime::BEGIN@2.98
# spent 15µs making 1 call to strict::import |
| 3 | 2 | 24µs | 2 | 20µs | # spent 15µs (9+5) within Module::Runtime::BEGIN@3.99 which was called:
# once (9µs+5µs) by Module::Runtime::require_module at line 3 # spent 15µs making 1 call to Module::Runtime::BEGIN@3.99
# spent 5µs making 1 call to warnings::import |
| 4 | 2 | 67µs | 2 | 13µs | # spent 11µs (9+2) within Module::Runtime::BEGIN@4.100 which was called:
# once (9µs+2µs) by Module::Runtime::require_module at line 4 # spent 11µs making 1 call to Module::Runtime::BEGIN@4.100
# spent 2µs making 1 call to utf8::import |
| 5 | |||||
| 6 | package Path::IsDev::Heuristic::Makefile; | ||||
| 7 | 1 | 800ns | $Path::IsDev::Heuristic::Makefile::VERSION = '1.001000'; | ||
| 8 | |||||
| - - | |||||
| 23 | # ABSTRACT: Determine if a path contains a Makefile | ||||
| 24 | |||||
| 25 | 1 | 200ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
| 26 | |||||
| 27 | 2 | 126µs | 2 | 81µs | # spent 45µs (10+36) within Path::IsDev::Heuristic::Makefile::BEGIN@27 which was called:
# once (10µs+36µs) by Module::Runtime::require_module at line 27 # spent 45µs making 1 call to Path::IsDev::Heuristic::Makefile::BEGIN@27
# spent 36µs making 1 call to Exporter::import |
| 28 | 1 | 2µs | 1 | 349µs | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File'; # spent 349µs making 1 call to Role::Tiny::With::with |
| 29 | |||||
| - - | |||||
| 40 | # spent 11µs within Path::IsDev::Heuristic::Makefile::files which was called 9 times, avg 1µs/call:
# 9 times (11µs+0s) by Path::IsDev::Heuristic::Makefile::matches at line 52, avg 1µs/call | ||||
| 41 | 9 | 23µs | return qw( GNUmakefile makefile Makefile ); | ||
| 42 | } | ||||
| 43 | |||||
| - - | |||||
| 50 | # spent 2.62ms (62µs+2.55) within Path::IsDev::Heuristic::Makefile::matches which was called 9 times, avg 291µs/call:
# 9 times (62µs+2.55ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 291µs/call | ||||
| 51 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
| 52 | 9 | 23µs | 18 | 2.55ms | if ( $self->child_exists_any_file( $result_object, $self->files ) ) { # spent 2.54ms making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 282µs/call
# spent 11µs making 9 calls to Path::IsDev::Heuristic::Makefile::files, avg 1µs/call |
| 53 | $result_object->result(1); | ||||
| 54 | return 1; | ||||
| 55 | } | ||||
| 56 | 9 | 17µs | return; | ||
| 57 | } | ||||
| 58 | |||||
| 59 | 1 | 4µs | 1; | ||
| 60 | |||||
| 61 | __END__ |