← 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/VCS/Git.pm
StatementsExecuted 50 statements in 394µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
91169µs968µsPath::IsDev::Heuristic::VCS::Git::::matchesPath::IsDev::Heuristic::VCS::Git::matches
11121µs21µsModule::Runtime::::BEGIN@1.101 Module::Runtime::BEGIN@1.101
11110µs15µsModule::Runtime::::BEGIN@3.103 Module::Runtime::BEGIN@3.103
11110µs41µsPath::IsDev::Heuristic::VCS::Git::::BEGIN@27Path::IsDev::Heuristic::VCS::Git::BEGIN@27
91110µs10µsPath::IsDev::Heuristic::VCS::Git::::dirsPath::IsDev::Heuristic::VCS::Git::dirs
11110µs12µsModule::Runtime::::BEGIN@4.104 Module::Runtime::BEGIN@4.104
1119µs25µsModule::Runtime::::BEGIN@2.102 Module::Runtime::BEGIN@2.102
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1256µs121µs
# spent 21µs within Module::Runtime::BEGIN@1.101 which was called: # once (21µs+0s) by Module::Runtime::require_module at line 1
use 5.008; # utf8
# spent 21µs making 1 call to Module::Runtime::BEGIN@1.101
2229µs240µs
# spent 25µs (9+16) within Module::Runtime::BEGIN@2.102 which was called: # once (9µs+16µs) by Module::Runtime::require_module at line 2
use strict;
# spent 25µs making 1 call to Module::Runtime::BEGIN@2.102 # spent 16µs making 1 call to strict::import
3225µs220µs
# spent 15µs (10+5) within Module::Runtime::BEGIN@3.103 which was called: # once (10µs+5µs) by Module::Runtime::require_module at line 3
use warnings;
# spent 15µs making 1 call to Module::Runtime::BEGIN@3.103 # spent 5µs making 1 call to warnings::import
4276µs214µs
# spent 12µs (10+2) within Module::Runtime::BEGIN@4.104 which was called: # once (10µs+2µs) by Module::Runtime::require_module at line 4
use utf8;
# spent 12µs making 1 call to Module::Runtime::BEGIN@4.104 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::Heuristic::VCS::Git;
71800ns$Path::IsDev::Heuristic::VCS::Git::VERSION = '1.001000';
8
- -
23# ABSTRACT: Determine if a path contains a .git repository
24
251200nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
26
272127µs271µs
# spent 41µs (10+31) within Path::IsDev::Heuristic::VCS::Git::BEGIN@27 which was called: # once (10µs+31µs) by Module::Runtime::require_module at line 27
use Role::Tiny::With qw( with );
# spent 41µs making 1 call to Path::IsDev::Heuristic::VCS::Git::BEGIN@27 # spent 31µs making 1 call to Exporter::import
28
2912µs1350µswith 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::Dir';
# spent 350µs making 1 call to Role::Tiny::With::with
30
- -
39929µs
# spent 10µs within Path::IsDev::Heuristic::VCS::Git::dirs which was called 9 times, avg 1µs/call: # 9 times (10µs+0s) by Path::IsDev::Heuristic::VCS::Git::matches at line 49, avg 1µs/call
sub dirs { return qw( .git ) }
40
- -
47
# spent 968µs (69+899) within Path::IsDev::Heuristic::VCS::Git::matches which was called 9 times, avg 108µs/call: # 9 times (69µs+899µs) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 108µs/call
sub matches {
4893µs my ( $self, $result_object ) = @_;
49923µs18899µs if ( $self->child_exists_any_dir( $result_object, $self->dirs ) ) {
# spent 889µs making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::Dir::child_exists_any_dir, avg 99µs/call # spent 10µs making 9 calls to Path::IsDev::Heuristic::VCS::Git::dirs, avg 1µs/call
50 $result_object->result(1);
51 return 1;
52 }
53917µs return;
54}
55
5614µs1;
57
58__END__