Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Heuristic/VCS/Git.pm |
Statements | Executed 50 statements in 394µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
9 | 1 | 1 | 69µs | 968µs | matches | Path::IsDev::Heuristic::VCS::Git::
1 | 1 | 1 | 21µs | 21µs | BEGIN@1.101 | Module::Runtime::
1 | 1 | 1 | 10µs | 15µs | BEGIN@3.103 | Module::Runtime::
1 | 1 | 1 | 10µs | 41µs | BEGIN@27 | Path::IsDev::Heuristic::VCS::Git::
9 | 1 | 1 | 10µs | 10µs | dirs | Path::IsDev::Heuristic::VCS::Git::
1 | 1 | 1 | 10µs | 12µs | BEGIN@4.104 | Module::Runtime::
1 | 1 | 1 | 9µs | 25µs | BEGIN@2.102 | Module::Runtime::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 56µs | 1 | 21µ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 # spent 21µs making 1 call to Module::Runtime::BEGIN@1.101 |
2 | 2 | 29µs | 2 | 40µ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 # spent 25µs making 1 call to Module::Runtime::BEGIN@2.102
# spent 16µs making 1 call to strict::import |
3 | 2 | 25µs | 2 | 20µ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 # spent 15µs making 1 call to Module::Runtime::BEGIN@3.103
# spent 5µs making 1 call to warnings::import |
4 | 2 | 76µs | 2 | 14µ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 # spent 12µs making 1 call to Module::Runtime::BEGIN@4.104
# spent 2µs making 1 call to utf8::import |
5 | |||||
6 | package Path::IsDev::Heuristic::VCS::Git; | ||||
7 | 1 | 800ns | $Path::IsDev::Heuristic::VCS::Git::VERSION = '1.001000'; | ||
8 | |||||
- - | |||||
23 | # ABSTRACT: Determine if a path contains a .git repository | ||||
24 | |||||
25 | 1 | 200ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
26 | |||||
27 | 2 | 127µs | 2 | 71µ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 # spent 41µs making 1 call to Path::IsDev::Heuristic::VCS::Git::BEGIN@27
# spent 31µs making 1 call to Exporter::import |
28 | |||||
29 | 1 | 2µs | 1 | 350µs | with 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::Dir'; # spent 350µs making 1 call to Role::Tiny::With::with |
30 | |||||
- - | |||||
39 | 9 | 29µ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 | ||
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 | ||||
48 | 9 | 3µs | my ( $self, $result_object ) = @_; | ||
49 | 9 | 23µs | 18 | 899µ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 | } | ||||
53 | 9 | 17µs | return; | ||
54 | } | ||||
55 | |||||
56 | 1 | 4µs | 1; | ||
57 | |||||
58 | __END__ |