← 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/NegativeHeuristic/PerlINC.pm
StatementsExecuted 87 statements in 648µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1011216µs398µsPath::IsDev::NegativeHeuristic::PerlINC::::pathsPath::IsDev::NegativeHeuristic::PerlINC::paths
101169µs10.1msPath::IsDev::NegativeHeuristic::PerlINC::::excludesPath::IsDev::NegativeHeuristic::PerlINC::excludes
101152µs52µsPath::IsDev::NegativeHeuristic::PerlINC::::_uniqPath::IsDev::NegativeHeuristic::PerlINC::_uniq
11117µs17µsModule::Runtime::::BEGIN@1.45 Module::Runtime::BEGIN@1.45
11111µs23µsPath::IsDev::NegativeHeuristic::PerlINC::::BEGIN@34Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@34
1119µs11µsModule::Runtime::::BEGIN@4.48 Module::Runtime::BEGIN@4.48
1119µs42µsPath::IsDev::NegativeHeuristic::PerlINC::::BEGIN@33Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@33
1119µs14µsModule::Runtime::::BEGIN@3.47 Module::Runtime::BEGIN@3.47
1117µs19µsModule::Runtime::::BEGIN@2.46 Module::Runtime::BEGIN@2.46
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1242µs117µs
# spent 17µs within Module::Runtime::BEGIN@1.45 which was called: # once (17µs+0s) by Module::Runtime::require_module at line 1
use 5.008; # utf8
# spent 17µs making 1 call to Module::Runtime::BEGIN@1.45
2227µs231µs
# spent 19µs (7+12) within Module::Runtime::BEGIN@2.46 which was called: # once (7µs+12µs) by Module::Runtime::require_module at line 2
use strict;
# spent 19µs making 1 call to Module::Runtime::BEGIN@2.46 # spent 12µs making 1 call to strict::import
3224µs220µs
# spent 14µs (9+6) within Module::Runtime::BEGIN@3.47 which was called: # once (9µs+6µs) by Module::Runtime::require_module at line 3
use warnings;
# spent 14µs making 1 call to Module::Runtime::BEGIN@3.47 # spent 6µs making 1 call to warnings::import
4299µs214µs
# spent 11µs (9+2) within Module::Runtime::BEGIN@4.48 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.48 # spent 2µs making 1 call to utf8::import
5
6package Path::IsDev::NegativeHeuristic::PerlINC;
71600ns$Path::IsDev::NegativeHeuristic::PerlINC::VERSION = '1.001000';
8# ABSTRACT: White-list paths in Config.pm as being non-development roots.
9
101200nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
11
12## no critic (RequireArgUnpacking, ProhibitSubroutinePrototypes)
13
# spent 52µs within Path::IsDev::NegativeHeuristic::PerlINC::_uniq which was called 10 times, avg 5µs/call: # 10 times (52µs+0s) by Path::IsDev::NegativeHeuristic::PerlINC::paths at line 49, avg 5µs/call
sub _uniq (@) {
14104µs my %seen = ();
151058µs return grep { not $seen{$_}++ } @_;
16}
17
- -
33224µs276µs
# spent 42µs (9+33) within Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@33 which was called: # once (9µs+33µs) by Module::Runtime::require_module at line 33
use Role::Tiny::With qw( with );
# spent 42µs making 1 call to Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@33 # spent 33µs making 1 call to Exporter::import
342139µs236µs
# spent 23µs (11+13) within Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@34 which was called: # once (11µs+13µs) by Module::Runtime::require_module at line 34
use Config;
# spent 23µs making 1 call to Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@34 # spent 13µs making 1 call to Config::import
35
3612µs1304µswith 'Path::IsDev::Role::NegativeHeuristic', 'Path::IsDev::Role::Matcher::FullPath::Is::Any';
# spent 304µs making 1 call to Role::Tiny::With::with
37
- -
46
# spent 398µs (216+182) within Path::IsDev::NegativeHeuristic::PerlINC::paths which was called 10 times, avg 40µs/call: # 10 times (216µs+182µs) by Path::IsDev::NegativeHeuristic::PerlINC::excludes at line 61, avg 40µs/call
sub paths {
47102µs my @sources;
4810122µs40130µs push @sources, $Config{archlibexp}, $Config{privlibexp}, $Config{sitelibexp}, $Config{vendorlibexp};
# spent 130µs making 40 calls to Config::FETCH, avg 3µs/call
491056µs1052µs return _uniq grep { defined and length } @sources;
# spent 52µs making 10 calls to Path::IsDev::NegativeHeuristic::PerlINC::_uniq, avg 5µs/call
50}
51
- -
58
# spent 10.1ms (69µs+10.0) within Path::IsDev::NegativeHeuristic::PerlINC::excludes which was called 10 times, avg 1.01ms/call: # 10 times (69µs+10.0ms) by Path::IsDev::Role::HeuristicSet::matches at line 68 of Path/IsDev/Role/HeuristicSet.pm, avg 1.01ms/call
sub excludes {
59104µs my ( $self, $result_object ) = @_;
60
611039µs2010.0ms return unless $self->fullpath_is_any( $result_object, $self->paths );
# spent 9.62ms making 10 calls to Path::IsDev::Role::Matcher::FullPath::Is::Any::fullpath_is_any, avg 962µs/call # spent 398µs making 10 calls to Path::IsDev::NegativeHeuristic::PerlINC::paths, avg 40µs/call
6212µs return 1;
63}
64
6514µs1;
66
67__END__