| Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Path/IsDev/Role/HeuristicSet/Simple.pm |
| Statements | Executed 213 statements in 582µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 11 | 1 | 1 | 497µs | 6.01ms | Path::IsDev::Role::HeuristicSet::Simple::modules |
| 1 | 1 | 1 | 17µs | 17µs | Role::Tiny::BEGIN@1 |
| 1 | 1 | 1 | 7µs | 93µs | Path::IsDev::Role::HeuristicSet::Simple::BEGIN@44 |
| 1 | 1 | 1 | 7µs | 28µs | Role::Tiny::BEGIN@2 |
| 1 | 1 | 1 | 7µs | 11µs | Role::Tiny::BEGIN@3 |
| 1 | 1 | 1 | 6µs | 8µs | Role::Tiny::BEGIN@4 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 40µs | 1 | 17µs | # spent 17µs within Role::Tiny::BEGIN@1 which was called:
# once (17µs+0s) by Role::Tiny::_load_module at line 1 # spent 17µs making 1 call to Role::Tiny::BEGIN@1 |
| 2 | 2 | 19µs | 2 | 49µ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 # spent 28µs making 1 call to Role::Tiny::BEGIN@2
# spent 21µs making 1 call to strict::import |
| 3 | 2 | 18µs | 2 | 14µ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 # spent 11µs making 1 call to Role::Tiny::BEGIN@3
# spent 4µs making 1 call to warnings::import |
| 4 | 2 | 57µs | 2 | 9µ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 # spent 8µs making 1 call to Role::Tiny::BEGIN@4
# spent 1µs making 1 call to utf8::import |
| 5 | |||||
| 6 | package Path::IsDev::Role::HeuristicSet::Simple; | ||||
| 7 | 1 | 600ns | $Path::IsDev::Role::HeuristicSet::Simple::VERSION = '1.001000'; | ||
| 8 | # ABSTRACT: Simple excludes/includes set | ||||
| 9 | |||||
| 10 | 1 | 200ns | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | ||
| 11 | |||||
| - - | |||||
| 44 | 2 | 98µs | 2 | 179µ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 # 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 | |||||
| 46 | 1 | 2µs | 1 | 778µs | with 'Path::IsDev::Role::HeuristicSet'; # spent 778µs making 1 call to Role::Tiny::__ANON__[Role/Tiny.pm:67] |
| 47 | 1 | 1µs | 1 | 2µs | requires '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 | ||||
| 59 | 11 | 2µs | my ($self) = @_; | ||
| 60 | 11 | 2µs | my @out; | ||
| 61 | 11 | 22µs | 11 | 18µs | for my $heur ( $self->negative_heuristics ) { # spent 18µs making 11 calls to Path::IsDev::HeuristicSet::Basic::negative_heuristics, avg 2µs/call |
| 62 | 33 | 60µs | 33 | 1.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 | } | ||||
| 64 | 11 | 29µs | 11 | 28µs | for my $heur ( $self->heuristics ) { # spent 28µs making 11 calls to Path::IsDev::HeuristicSet::Basic::heuristics, avg 3µs/call |
| 65 | 110 | 173µs | 110 | 4.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 | } | ||||
| 67 | 11 | 57µs | return @out; | ||
| 68 | } | ||||
| 69 | |||||
| 70 | 1 | 3µs | 1; | ||
| 71 | |||||
| 72 | __END__ |