← 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/MYMETA.pm
StatementsExecuted 50 statements in 385µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
91170µs1.79msPath::IsDev::Heuristic::MYMETA::::matchesPath::IsDev::Heuristic::MYMETA::matches
91120µs20µsPath::IsDev::Heuristic::MYMETA::::filesPath::IsDev::Heuristic::MYMETA::files
11120µs20µsModule::Runtime::::BEGIN@1.93 Module::Runtime::BEGIN@1.93
11110µs50µsPath::IsDev::Heuristic::MYMETA::::BEGIN@36Path::IsDev::Heuristic::MYMETA::BEGIN@36
1119µs25µsModule::Runtime::::BEGIN@2.94 Module::Runtime::BEGIN@2.94
1119µs14µsModule::Runtime::::BEGIN@3.95 Module::Runtime::BEGIN@3.95
1119µs11µsModule::Runtime::::BEGIN@4.96 Module::Runtime::BEGIN@4.96
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1255µs120µs
# spent 20µs within Module::Runtime::BEGIN@1.93 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.93
2226µs240µs
# spent 25µs (9+16) within Module::Runtime::BEGIN@2.94 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.94 # spent 16µs making 1 call to strict::import
3224µs219µs
# spent 14µs (9+5) within Module::Runtime::BEGIN@3.95 which was called: # once (9µs+5µs) by Module::Runtime::require_module at line 3
use warnings;
# spent 14µs making 1 call to Module::Runtime::BEGIN@3.95 # spent 5µs making 1 call to warnings::import
4271µs213µs
# spent 11µs (9+2) within Module::Runtime::BEGIN@4.96 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.96 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::Heuristic::MYMETA;
71800ns$Path::IsDev::Heuristic::MYMETA::VERSION = '1.001000';
8# ABSTRACT: Determine if a path contains MYMETA.(json|yml)
9
101200nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
11
- -
362127µs291µs
# spent 50µs (10+40) within Path::IsDev::Heuristic::MYMETA::BEGIN@36 which was called: # once (10µs+40µs) by Module::Runtime::require_module at line 36
use Role::Tiny::With qw( with );
# spent 50µs making 1 call to Path::IsDev::Heuristic::MYMETA::BEGIN@36 # spent 40µs making 1 call to Exporter::import
3712µs1351µswith 'Path::IsDev::Role::Heuristic', 'Path::IsDev::Role::Matcher::Child::Exists::Any::File';
# spent 351µs making 1 call to Role::Tiny::With::with
38
- -
48
# spent 20µs within Path::IsDev::Heuristic::MYMETA::files which was called 9 times, avg 2µs/call: # 9 times (20µs+0s) by Path::IsDev::Heuristic::MYMETA::matches at line 60, avg 2µs/call
sub files {
49922µs return qw( MYMETA.json MYMETA.yml );
50}
51
- -
58
# spent 1.79ms (70µs+1.72) within Path::IsDev::Heuristic::MYMETA::matches which was called 9 times, avg 199µs/call: # 9 times (70µs+1.72ms) by Path::IsDev::Role::HeuristicSet::matches at line 74 of Path/IsDev/Role/HeuristicSet.pm, avg 199µs/call
sub matches {
5994µs my ( $self, $result_object ) = @_;
60932µs181.72ms if ( $self->child_exists_any_file( $result_object, $self->files ) ) {
# spent 1.70ms making 9 calls to Path::IsDev::Role::Matcher::Child::Exists::Any::File::child_exists_any_file, avg 189µs/call # spent 20µs making 9 calls to Path::IsDev::Heuristic::MYMETA::files, avg 2µs/call
61 $result_object->result(1);
62 return 1;
63 }
64918µs return;
65}
66
6714µs1;
68
69__END__