Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/MYMETA.pm |
Statements | Executed 50 statements in 385µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
9 | 1 | 1 | 70µs | 1.79ms | matches | Path::IsDev::Heuristic::MYMETA::
9 | 1 | 1 | 20µs | 20µs | files | Path::IsDev::Heuristic::MYMETA::
1 | 1 | 1 | 20µs | 20µs | BEGIN@1.93 | Module::Runtime::
1 | 1 | 1 | 10µs | 50µs | BEGIN@36 | Path::IsDev::Heuristic::MYMETA::
1 | 1 | 1 | 9µs | 25µs | BEGIN@2.94 | Module::Runtime::
1 | 1 | 1 | 9µs | 14µs | BEGIN@3.95 | Module::Runtime::
1 | 1 | 1 | 9µs | 11µs | BEGIN@4.96 | Module::Runtime::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 55µs | 1 | 20µs | # spent 20µs within Module::Runtime::BEGIN@1.93 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.93 |
2 | 2 | 26µs | 2 | 40µs | # spent 25µs (9+16) within Module::Runtime::BEGIN@2.94 which was called:
# once (9µs+16µs) by Module::Runtime::require_module at line 2 # spent 25µs making 1 call to Module::Runtime::BEGIN@2.94
# spent 16µs making 1 call to strict::import |
3 | 2 | 24µs | 2 | 19µs | # spent 14µs (9+5) within Module::Runtime::BEGIN@3.95 which was called:
# once (9µs+5µs) by Module::Runtime::require_module at line 3 # spent 14µs making 1 call to Module::Runtime::BEGIN@3.95
# spent 5µs making 1 call to warnings::import |
4 | 2 | 71µs | 2 | 13µs | # spent 11µs (9+2) within Module::Runtime::BEGIN@4.96 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.96
# spent 2µs making 1 call to utf8::import |
5 | |||||
6 | package Path::IsDev::Heuristic::MYMETA; | ||||
7 | 1 | 800ns | $Path::IsDev::Heuristic::MYMETA::VERSION = '1.001000'; | ||
8 | # ABSTRACT: Determine if a path contains MYMETA.(json|yml) | ||||
9 | |||||
10 | 1 | 200ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
11 | |||||
- - | |||||
36 | 2 | 127µs | 2 | 91µs | # spent 50µs (10+40) within Path::IsDev::Heuristic::MYMETA::BEGIN@36 which was called:
# once (10µs+40µs) by Module::Runtime::require_module at line 36 # spent 50µs making 1 call to Path::IsDev::Heuristic::MYMETA::BEGIN@36
# spent 40µs making 1 call to Exporter::import |
37 | 1 | 2µs | 1 | 351µs | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File'; # spent 351µs making 1 call to Role::Tiny::With::with |
38 | |||||
- - | |||||
48 | # spent 20µs within Path::IsDev::Heuristic::MYMETA::files which was called 9 times, avg 2µs/call:
# 9 times (20µs+0s) by Path::IsDev::Heuristic::MYMETA::matches at line 60, avg 2µs/call | ||||
49 | 9 | 22µs | return qw( MYMETA.json MYMETA.yml ); | ||
50 | } | ||||
51 | |||||
- - | |||||
58 | # spent 1.79ms (70µs+1.72) within Path::IsDev::Heuristic::MYMETA::matches which was called 9 times, avg 199µs/call:
# 9 times (70µs+1.72ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 199µs/call | ||||
59 | 9 | 4µs | my ( $self, $result_object ) = @_; | ||
60 | 9 | 32µs | 18 | 1.72ms | if ( $self->child_exists_any_file( $result_object, $self->files ) ) { # spent 1.70ms making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 189µs/call
# spent 20µs making 9 calls to Path::IsDev::Heuristic::MYMETA::files, avg 2µs/call |
61 | $result_object->result(1); | ||||
62 | return 1; | ||||
63 | } | ||||
64 | 9 | 18µs | return; | ||
65 | } | ||||
66 | |||||
67 | 1 | 4µs | 1; | ||
68 | |||||
69 | __END__ |