| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/TestDir.pm |
| Statements | Executed 50 statements in 454µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 411 | 2 | 1 | 667µs | 667µs | Module::Runtime::CORE:match (opcode) |
| 411 | 3 | 1 | 397µs | 397µs | Module::Runtime::CORE:subst (opcode) |
| 148 | 4 | 1 | 198µs | 198µs | Module::Runtime::CORE:regcomp (opcode) |
| 150 | 7 | 1 | 148µs | 148µs | Module::Runtime::CORE:qr (opcode) |
| 9 | 1 | 1 | 63µs | 1.83ms | Path::IsDev::Heuristic::TestDir::matches |
| 1 | 1 | 1 | 27µs | 27µs | Module::Runtime::BEGIN@1.81 |
| 1 | 1 | 1 | 13µs | 50µs | Path::IsDev::Heuristic::TestDir::BEGIN@27 |
| 1 | 1 | 1 | 12µs | 31µs | Module::Runtime::BEGIN@2.82 |
| 1 | 1 | 1 | 12µs | 18µs | Module::Runtime::BEGIN@3.83 |
| 9 | 1 | 1 | 12µs | 12µs | Path::IsDev::Heuristic::TestDir::dirs |
| 1 | 1 | 1 | 12µs | 14µs | Module::Runtime::BEGIN@4.84 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 66µs | 1 | 27µs | # spent 27µs within Module::Runtime::BEGIN@1.81 which was called:
# once (27µs+0s) by Module::Runtime::require_module at line 1 # spent 27µs making 1 call to Module::Runtime::BEGIN@1.81 |
| 2 | 2 | 34µs | 2 | 50µs | # spent 31µs (12+19) within Module::Runtime::BEGIN@2.82 which was called:
# once (12µs+19µs) by Module::Runtime::require_module at line 2 # spent 31µs making 1 call to Module::Runtime::BEGIN@2.82
# spent 19µs making 1 call to strict::import |
| 3 | 2 | 32µs | 2 | 24µs | # spent 18µs (12+6) within Module::Runtime::BEGIN@3.83 which was called:
# once (12µs+6µs) by Module::Runtime::require_module at line 3 # spent 18µs making 1 call to Module::Runtime::BEGIN@3.83
# spent 6µs making 1 call to warnings::import |
| 4 | 2 | 86µs | 2 | 16µs | # spent 14µs (12+2) within Module::Runtime::BEGIN@4.84 which was called:
# once (12µs+2µs) by Module::Runtime::require_module at line 4 # spent 14µs making 1 call to Module::Runtime::BEGIN@4.84
# spent 2µs making 1 call to utf8::import |
| 5 | |||||
| 6 | package Path::IsDev::Heuristic::TestDir; | ||||
| 7 | 1 | 1µs | $Path::IsDev::Heuristic::TestDir::VERSION = '1.001000'; | ||
| 8 | # ABSTRACT: Determine if a path contains a t/ or xt/ directory | ||||
| 9 | |||||
| 10 | 1 | 300ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
| 11 | |||||
| - - | |||||
| 27 | 2 | 161µs | 2 | 88µs | # spent 50µs (13+38) within Path::IsDev::Heuristic::TestDir::BEGIN@27 which was called:
# once (13µs+38µs) by Module::Runtime::require_module at line 27 # spent 50µs making 1 call to Path::IsDev::Heuristic::TestDir::BEGIN@27
# spent 38µs making 1 call to Exporter::import |
| 28 | |||||
| 29 | 1 | 3µs | 1 | 1.51ms | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::Dir'; # spent 1.51ms making 1 call to Role::Tiny::With::with |
| 30 | |||||
| - - | |||||
| 40 | # spent 12µs within Path::IsDev::Heuristic::TestDir::dirs which was called 9 times, avg 1µs/call:
# 9 times (12µs+0s) by Path::IsDev::Heuristic::TestDir::matches at line 54, avg 1µs/call | ||||
| 41 | 9 | 23µs | return qw( xt t ); | ||
| 42 | } | ||||
| 43 | |||||
| - - | |||||
| 52 | # spent 1.83ms (63µs+1.77) within Path::IsDev::Heuristic::TestDir::matches which was called 9 times, avg 204µs/call:
# 9 times (63µs+1.77ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 204µs/call | ||||
| 53 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
| 54 | 9 | 24µs | 18 | 1.77ms | if ( $self->child_exists_any_dir( $result_object, $self->dirs ) ) { # spent 1.76ms making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::Dir::child_exists_any_dir, avg 196µs/call
# spent 12µs making 9 calls to Path::IsDev::Heuristic::TestDir::dirs, avg 1µs/call |
| 55 | $result_object->result(1); | ||||
| 56 | return 1; | ||||
| 57 | } | ||||
| 58 | 9 | 16µs | return; | ||
| 59 | } | ||||
| 60 | |||||
| 61 | 1 | 5µs | 1; | ||
| 62 | |||||
| 63 | __END__ | ||||
# spent 667µs within Module::Runtime::CORE:match which was called 411 times, avg 2µs/call:
# 267 times (492µs+0s) by Module::Runtime::is_module_name at line 222 of Module/Runtime.pm, avg 2µs/call
# 144 times (176µs+0s) by Module::Runtime::is_module_spec at line 408 of Module/Runtime.pm, avg 1µs/call | |||||
# spent 148µs within Module::Runtime::CORE:qr which was called 150 times, avg 989ns/call:
# 144 times (142µs+0s) by Module::Runtime::is_module_spec at line 408 of Module/Runtime.pm, avg 987ns/call
# once (2µs+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 179 of Module/Runtime.pm
# once (1µs+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 205 of Module/Runtime.pm
# once (1µs+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 194 of Module/Runtime.pm
# once (900ns+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 188 of Module/Runtime.pm
# once (800ns+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 191 of Module/Runtime.pm
# once (600ns+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 203 of Module/Runtime.pm | |||||
# spent 198µs within Module::Runtime::CORE:regcomp which was called 148 times, avg 1µs/call:
# 145 times (138µs+0s) by Module::Runtime::is_module_spec at line 408 of Module/Runtime.pm, avg 954ns/call
# once (28µs+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 194 of Module/Runtime.pm
# once (21µs+0s) by Path::IsDev::Object::__ANON__[/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Object.pm:74] at line 205 of Module/Runtime.pm
# once (11µs+0s) by Module::Runtime::is_module_name at line 222 of Module/Runtime.pm | |||||
# spent 397µs within Module::Runtime::CORE:subst which was called 411 times, avg 966ns/call:
# 144 times (75µs+0s) by Module::Runtime::compose_module_name at line 460 of Module/Runtime.pm, avg 524ns/call
# 144 times (43µs+0s) by Module::Runtime::compose_module_name at line 465 of Module/Runtime.pm, avg 297ns/call
# 123 times (279µs+0s) by Module::Runtime::module_notional_filename at line 266 of Module/Runtime.pm, avg 2µs/call |