← 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/Makefile.pm
StatementsExecuted 50 statements in 374µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
91162µs2.62msPath::IsDev::Heuristic::Makefile::::matchesPath::IsDev::Heuristic::Makefile::matches
11120µs20µsModule::Runtime::::BEGIN@1.97 Module::Runtime::BEGIN@1.97
91111µs11µsPath::IsDev::Heuristic::Makefile::::filesPath::IsDev::Heuristic::Makefile::files
11110µs45µsPath::IsDev::Heuristic::Makefile::::BEGIN@27Path::IsDev::Heuristic::Makefile::BEGIN@27
1119µs15µsModule::Runtime::::BEGIN@3.99 Module::Runtime::BEGIN@3.99
1119µs25µsModule::Runtime::::BEGIN@2.98 Module::Runtime::BEGIN@2.98
1119µs11µsModule::Runtime::::BEGIN@4.100 Module::Runtime::BEGIN@4.100
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1254µs120µs
# spent 20µs within Module::Runtime::BEGIN@1.97 which was called: # once (20µs+0s) by Module::Runtime::require_module at line 1
use 5.008; # utf8
# spent 20µs making 1 call to Module::Runtime::BEGIN@1.97
2230µs240µs
# spent 25µs (9+15) within Module::Runtime::BEGIN@2.98 which was called: # once (9µs+15µs) by Module::Runtime::require_module at line 2
use strict;
# spent 25µs making 1 call to Module::Runtime::BEGIN@2.98 # spent 15µs making 1 call to strict::import
3224µs220µs
# spent 15µs (9+5) within Module::Runtime::BEGIN@3.99 which was called: # once (9µs+5µs) by Module::Runtime::require_module at line 3
use warnings;
# spent 15µs making 1 call to Module::Runtime::BEGIN@3.99 # spent 5µs making 1 call to warnings::import
4267µs213µs
# spent 11µs (9+2) within Module::Runtime::BEGIN@4.100 which was called: # once (9µs+2µs) by Module::Runtime::require_module at line 4
use utf8;
# spent 11µs making 1 call to Module::Runtime::BEGIN@4.100 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::Heuristic::Makefile;
71800ns$Path::IsDev::Heuristic::Makefile::VERSION = '1.001000';
8
- -
23# ABSTRACT: Determine if a path contains a Makefile
24
251200nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
26
272126µs281µs
# spent 45µs (10+36) within Path::IsDev::Heuristic::Makefile::BEGIN@27 which was called: # once (10µs+36µs) by Module::Runtime::require_module at line 27
use Role::Tiny::With qw( with );
# spent 45µs making 1 call to Path::IsDev::Heuristic::Makefile::BEGIN@27 # spent 36µs making 1 call to Exporter::import
2812µs1349µswith 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File';
# spent 349µs making 1 call to Role::Tiny::With::with
29
- -
40
# spent 11µs within Path::IsDev::Heuristic::Makefile::files which was called 9 times, avg 1µs/call: # 9 times (11µs+0s) by Path::IsDev::Heuristic::Makefile::matches at line 52, avg 1µs/call
sub files {
41923µs return qw( GNUmakefile makefile Makefile );
42}
43
- -
50
# spent 2.62ms (62µs+2.55) within Path::IsDev::Heuristic::Makefile::matches which was called 9 times, avg 291µs/call: # 9 times (62µs+2.55ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 291µs/call
sub matches {
5193µs my ( $self, $result_object ) = @_;
52923µs182.55ms if ( $self->child_exists_any_file( $result_object, $self->files ) ) {
# spent 2.54ms making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 282µs/call # spent 11µs making 9 calls to Path::IsDev::Heuristic::Makefile::files, avg 1µs/call
53 $result_object->result(1);
54 return 1;
55 }
56917µs return;
57}
58
5914µs1;
60
61__END__