← Index
NYTProf Performance Profile   « line view »
For /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin/perlcritic
  Run on Sat Mar 19 22:12:22 2016
Reported on Sat Mar 19 22:14:12 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/TestDir.pm
StatementsExecuted 50 statements in 454µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
41121667µs667µsModule::Runtime::::CORE:match Module::Runtime::CORE:match (opcode)
41131397µs397µsModule::Runtime::::CORE:subst Module::Runtime::CORE:subst (opcode)
14841198µs198µsModule::Runtime::::CORE:regcomp Module::Runtime::CORE:regcomp (opcode)
15071148µs148µsModule::Runtime::::CORE:qr Module::Runtime::CORE:qr (opcode)
91163µs1.83msPath::IsDev::Heuristic::TestDir::::matchesPath::IsDev::Heuristic::TestDir::matches
11127µs27µsModule::Runtime::::BEGIN@1.81 Module::Runtime::BEGIN@1.81
11113µs50µsPath::IsDev::Heuristic::TestDir::::BEGIN@27Path::IsDev::Heuristic::TestDir::BEGIN@27
11112µs31µsModule::Runtime::::BEGIN@2.82 Module::Runtime::BEGIN@2.82
11112µs18µsModule::Runtime::::BEGIN@3.83 Module::Runtime::BEGIN@3.83
91112µs12µsPath::IsDev::Heuristic::TestDir::::dirsPath::IsDev::Heuristic::TestDir::dirs
11112µs14µsModule::Runtime::::BEGIN@4.84 Module::Runtime::BEGIN@4.84
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1266µs127µ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
use 5.008; # utf8
# spent 27µs making 1 call to Module::Runtime::BEGIN@1.81
2234µs250µ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
use strict;
# spent 31µs making 1 call to Module::Runtime::BEGIN@2.82 # spent 19µs making 1 call to strict::import
3232µs224µ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
use warnings;
# spent 18µs making 1 call to Module::Runtime::BEGIN@3.83 # spent 6µs making 1 call to warnings::import
4286µs216µ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
use utf8;
# spent 14µs making 1 call to Module::Runtime::BEGIN@4.84 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::Heuristic::TestDir;
711µs$Path::IsDev::Heuristic::TestDir::VERSION = '1.001000';
8# ABSTRACT: Determine if a path contains a t/ or xt/ directory
9
101300nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
11
- -
272161µs288µ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
use Role::Tiny::With qw( with );
# spent 50µs making 1 call to Path::IsDev::Heuristic::TestDir::BEGIN@27 # spent 38µs making 1 call to Exporter::import
28
2913µs11.51mswith '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
sub dirs {
41923µ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
sub matches {
5393µs my ( $self, $result_object ) = @_;
54924µs181.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 }
58916µs return;
59}
60
6115µs1;
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
sub Module::Runtime::CORE:match; # opcode
# 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
sub Module::Runtime::CORE:qr; # opcode
# 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
sub Module::Runtime::CORE:regcomp; # opcode
# 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
sub Module::Runtime::CORE:subst; # opcode