← 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/Role/HeuristicSet/Simple.pm
StatementsExecuted 213 statements in 582µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111497µs6.01msPath::IsDev::Role::HeuristicSet::Simple::::modulesPath::IsDev::Role::HeuristicSet::Simple::modules
11117µs17µsRole::Tiny::::BEGIN@1 Role::Tiny::BEGIN@1
1117µs93µsPath::IsDev::Role::HeuristicSet::Simple::::BEGIN@44Path::IsDev::Role::HeuristicSet::Simple::BEGIN@44
1117µs28µsRole::Tiny::::BEGIN@2 Role::Tiny::BEGIN@2
1117µs11µsRole::Tiny::::BEGIN@3 Role::Tiny::BEGIN@3
1116µs8µsRole::Tiny::::BEGIN@4 Role::Tiny::BEGIN@4
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1240µs117µs
# spent 17µs within Role::Tiny::BEGIN@1 which was called: # once (17µs+0s) by Role::Tiny::_load_module at line 1
use 5.008; # utf8
# spent 17µs making 1 call to Role::Tiny::BEGIN@1
2219µs249µs
# spent 28µs (7+21) within Role::Tiny::BEGIN@2 which was called: # once (7µs+21µs) by Role::Tiny::_load_module at line 2
use strict;
# spent 28µs making 1 call to Role::Tiny::BEGIN@2 # spent 21µs making 1 call to strict::import
3218µs214µs
# spent 11µs (7+4) within Role::Tiny::BEGIN@3 which was called: # once (7µs+4µs) by Role::Tiny::_load_module at line 3
use warnings;
# spent 11µs making 1 call to Role::Tiny::BEGIN@3 # spent 4µs making 1 call to warnings::import
4257µs29µs
# spent 8µs (6+1) within Role::Tiny::BEGIN@4 which was called: # once (6µs+1µs) by Role::Tiny::_load_module at line 4
use utf8;
# spent 8µs making 1 call to Role::Tiny::BEGIN@4 # spent 1µs making 1 call to utf8::import
5
6package Path::IsDev::Role::HeuristicSet::Simple;
71600ns$Path::IsDev::Role::HeuristicSet::Simple::VERSION = '1.001000';
8# ABSTRACT: Simple excludes/includes set
9
101200nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
11
- -
44298µs2179µs
# spent 93µs (7+86) within Path::IsDev::Role::HeuristicSet::Simple::BEGIN@44 which was called: # once (7µs+86µs) by Role::Tiny::_load_module at line 44
use Role::Tiny qw( with requires );
# spent 93µs making 1 call to Path::IsDev::Role::HeuristicSet::Simple::BEGIN@44 # spent 86µs making 1 call to Role::Tiny::import
45
4612µs1778µswith 'Path::IsDev::Role::HeuristicSet';
# spent 778µs making 1 call to Role::Tiny::__ANON__[Role/Tiny.pm:67]
4711µs12µsrequires 'heuristics', 'negative_heuristics';
# spent 2µs making 1 call to Role::Tiny::__ANON__[Role/Tiny.pm:63]
48
- -
58
# spent 6.01ms (497µs+5.52) within Path::IsDev::Role::HeuristicSet::Simple::modules which was called 11 times, avg 547µs/call: # 11 times (497µs+5.52ms) by Path::IsDev::Role::HeuristicSet::matches at line 65 of Path/IsDev/Role/HeuristicSet.pm, avg 547µs/call
sub modules {
59112µs my ($self) = @_;
60112µs my @out;
611122µs1118µs for my $heur ( $self->negative_heuristics ) {
# spent 18µs making 11 calls to Path::IsDev::HeuristicSet::Basic::negative_heuristics, avg 2µs/call
623360µs331.36ms push @out, $self->_expand_negative_heuristic($heur);
# spent 1.36ms making 33 calls to Path::IsDev::Role::HeuristicSet::_expand_negative_heuristic, avg 41µs/call
63 }
641129µs1128µs for my $heur ( $self->heuristics ) {
# spent 28µs making 11 calls to Path::IsDev::HeuristicSet::Basic::heuristics, avg 3µs/call
65110173µs1104.11ms push @out, $self->_expand_heuristic($heur);
# spent 4.11ms making 110 calls to Path::IsDev::Role::HeuristicSet::_expand_heuristic, avg 37µs/call
66 }
671157µs return @out;
68}
69
7013µs1;
71
72__END__