Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/Tool/Dzil.pm |
Statements | Executed 50 statements in 306µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 4.60ms | 4.60ms | BEGIN@4.52 | Module::Runtime::
9 | 1 | 1 | 65µs | 988µs | matches | Path::IsDev::Heuristic::Tool::Dzil::
1 | 1 | 1 | 15µs | 15µs | BEGIN@1.49 | Module::Runtime::
9 | 1 | 1 | 10µs | 10µs | files | Path::IsDev::Heuristic::Tool::Dzil::
1 | 1 | 1 | 8µs | 37µs | BEGIN@27 | Path::IsDev::Heuristic::Tool::Dzil::
1 | 1 | 1 | 7µs | 10µs | BEGIN@3.51 | Module::Runtime::
1 | 1 | 1 | 7µs | 18µs | BEGIN@2.50 | Module::Runtime::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 38µs | 1 | 15µs | # spent 15µs within Module::Runtime::BEGIN@1.49 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.49 |
2 | 2 | 19µs | 2 | 29µs | # spent 18µs (7+11) within Module::Runtime::BEGIN@2.50 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.50
# spent 11µs making 1 call to strict::import |
3 | 2 | 23µs | 2 | 14µs | # spent 10µs (7+4) within Module::Runtime::BEGIN@3.51 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.51
# spent 4µs making 1 call to warnings::import |
4 | 2 | 62µs | 2 | 4.60ms | # spent 4.60ms (4.60+1µs) within Module::Runtime::BEGIN@4.52 which was called:
# once (4.60ms+1µs) by Module::Runtime::require_module at line 4 # spent 4.60ms making 1 call to Module::Runtime::BEGIN@4.52
# spent 2µs making 1 call to utf8::import |
5 | |||||
6 | package Path::IsDev::Heuristic::Tool::Dzil; | ||||
7 | 1 | 600ns | $Path::IsDev::Heuristic::Tool::Dzil::VERSION = '1.001000'; | ||
8 | |||||
- - | |||||
23 | # ABSTRACT: Determine if a path is a Dist::Zilla Source tree | ||||
24 | |||||
25 | 1 | 100ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
26 | |||||
27 | 2 | 98µs | 2 | 65µs | # spent 37µs (8+28) within Path::IsDev::Heuristic::Tool::Dzil::BEGIN@27 which was called:
# once (8µs+28µs) by Module::Runtime::require_module at line 27 # spent 37µs making 1 call to Path::IsDev::Heuristic::Tool::Dzil::BEGIN@27
# spent 28µs making 1 call to Exporter::import |
28 | 1 | 2µs | 1 | 807µs | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File'; # spent 807µs making 1 call to Role::Tiny::With::with |
29 | |||||
- - | |||||
38 | 9 | 19µs | # spent 10µs within Path::IsDev::Heuristic::Tool::Dzil::files which was called 9 times, avg 1µs/call:
# 9 times (10µs+0s) by Path::IsDev::Heuristic::Tool::Dzil::matches at line 48, avg 1µs/call | ||
39 | |||||
- - | |||||
46 | # spent 988µs (65+923) within Path::IsDev::Heuristic::Tool::Dzil::matches which was called 9 times, avg 110µs/call:
# 9 times (65µs+923µs) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 110µs/call | ||||
47 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
48 | 9 | 21µs | 18 | 923µs | if ( $self->child_exists_any_file( $result_object, $self->files ) ) { # spent 914µs making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 102µs/call
# spent 10µs making 9 calls to Path::IsDev::Heuristic::Tool::Dzil::files, avg 1µs/call |
49 | $result_object->result(1); | ||||
50 | return 1; | ||||
51 | } | ||||
52 | 9 | 16µs | return; | ||
53 | } | ||||
54 | |||||
55 | 1 | 3µs | 1; | ||
56 | |||||
57 | __END__ |