← 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/Tool/Dzil.pm
StatementsExecuted 50 statements in 306µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1114.60ms4.60msModule::Runtime::::BEGIN@4.52 Module::Runtime::BEGIN@4.52
91165µs988µsPath::IsDev::Heuristic::Tool::Dzil::::matchesPath::IsDev::Heuristic::Tool::Dzil::matches
11115µs15µsModule::Runtime::::BEGIN@1.49 Module::Runtime::BEGIN@1.49
91110µs10µsPath::IsDev::Heuristic::Tool::Dzil::::filesPath::IsDev::Heuristic::Tool::Dzil::files
1118µs37µsPath::IsDev::Heuristic::Tool::Dzil::::BEGIN@27Path::IsDev::Heuristic::Tool::Dzil::BEGIN@27
1117µs10µsModule::Runtime::::BEGIN@3.51 Module::Runtime::BEGIN@3.51
1117µs18µsModule::Runtime::::BEGIN@2.50 Module::Runtime::BEGIN@2.50
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1238µs115µ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
use 5.008; # utf8
# spent 15µs making 1 call to Module::Runtime::BEGIN@1.49
2219µs229µ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
use strict;
# spent 18µs making 1 call to Module::Runtime::BEGIN@2.50 # spent 11µs making 1 call to strict::import
3223µs214µ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
use warnings;
# spent 10µs making 1 call to Module::Runtime::BEGIN@3.51 # spent 4µs making 1 call to warnings::import
4262µs24.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
use utf8;
# spent 4.60ms making 1 call to Module::Runtime::BEGIN@4.52 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::Heuristic::Tool::Dzil;
71600ns$Path::IsDev::Heuristic::Tool::Dzil::VERSION = '1.001000';
8
- -
23# ABSTRACT: Determine if a path is a Dist::Zilla Source tree
24
251100nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
26
27298µs265µ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
use Role::Tiny::With qw( with );
# spent 37µs making 1 call to Path::IsDev::Heuristic::Tool::Dzil::BEGIN@27 # spent 28µs making 1 call to Exporter::import
2812µs1807µswith 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File';
# spent 807µs making 1 call to Role::Tiny::With::with
29
- -
38919µ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
sub files { return qw( dist.ini ) }
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
sub matches {
4793µs my ( $self, $result_object ) = @_;
48921µs18923µ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 }
52916µs return;
53}
54
5513µs1;
56
57__END__