Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/META.pm |
Statements | Executed 50 statements in 283µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
9 | 1 | 1 | 56µs | 1.68ms | matches | Path::IsDev::Heuristic::META::
1 | 1 | 1 | 15µs | 15µs | BEGIN@1.65 | Module::Runtime::
9 | 1 | 1 | 12µs | 12µs | files | Path::IsDev::Heuristic::META::
1 | 1 | 1 | 8µs | 29µs | BEGIN@27 | Path::IsDev::Heuristic::META::
1 | 1 | 1 | 7µs | 11µs | BEGIN@3.67 | Module::Runtime::
1 | 1 | 1 | 7µs | 8µs | BEGIN@4.68 | Module::Runtime::
1 | 1 | 1 | 7µs | 17µs | BEGIN@2.66 | Module::Runtime::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 36µs | 1 | 15µs | # spent 15µs within Module::Runtime::BEGIN@1.65 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.65 |
2 | 2 | 18µs | 2 | 28µs | # spent 17µs (7+11) within Module::Runtime::BEGIN@2.66 which was called:
# once (7µs+11µs) by Module::Runtime::require_module at line 2 # spent 17µs making 1 call to Module::Runtime::BEGIN@2.66
# spent 11µs making 1 call to strict::import |
3 | 2 | 21µs | 2 | 15µs | # spent 11µs (7+4) within Module::Runtime::BEGIN@3.67 which was called:
# once (7µs+4µs) by Module::Runtime::require_module at line 3 # spent 11µs making 1 call to Module::Runtime::BEGIN@3.67
# spent 4µs making 1 call to warnings::import |
4 | 2 | 53µs | 2 | 10µs | # spent 8µs (7+1) within Module::Runtime::BEGIN@4.68 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.68
# spent 1µs making 1 call to utf8::import |
5 | |||||
6 | package Path::IsDev::Heuristic::META; | ||||
7 | 1 | 500ns | $Path::IsDev::Heuristic::META::VERSION = '1.001000'; | ||
8 | |||||
- - | |||||
23 | # ABSTRACT: Determine if a path contains META.(json|yml) | ||||
24 | |||||
25 | 1 | 100ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
26 | |||||
27 | 2 | 89µs | 2 | 50µs | # spent 29µs (8+22) within Path::IsDev::Heuristic::META::BEGIN@27 which was called:
# once (8µs+22µs) by Module::Runtime::require_module at line 27 # spent 29µs making 1 call to Path::IsDev::Heuristic::META::BEGIN@27
# spent 22µs making 1 call to Exporter::import |
28 | 1 | 1µs | 1 | 249µs | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File'; # spent 249µs making 1 call to Role::Tiny::With::with |
29 | |||||
- - | |||||
39 | # spent 12µs within Path::IsDev::Heuristic::META::files which was called 9 times, avg 1µs/call:
# 9 times (12µs+0s) by Path::IsDev::Heuristic::META::matches at line 51, avg 1µs/call | ||||
40 | 9 | 20µs | return qw( META.json META.yml ); | ||
41 | } | ||||
42 | |||||
- - | |||||
49 | # spent 1.68ms (56µs+1.63) within Path::IsDev::Heuristic::META::matches which was called 9 times, avg 187µs/call:
# 9 times (56µs+1.63ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 187µs/call | ||||
50 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
51 | 9 | 22µs | 18 | 1.63ms | if ( $self->child_exists_any_file( $result_object, $self->files ) ) { # spent 1.61ms making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 179µs/call
# spent 12µs making 9 calls to Path::IsDev::Heuristic::META::files, avg 1µs/call |
52 | $result_object->result(1); | ||||
53 | return 1; | ||||
54 | } | ||||
55 | 9 | 15µs | return; | ||
56 | } | ||||
57 | |||||
58 | 1 | 3µs | 1; | ||
59 | |||||
60 | __END__ |