← 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/Heuristic.pm
StatementsExecuted 1666 statements in 3.19ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
236111.65ms2.39msPath::IsDev::Role::Heuristic::::namePath::IsDev::Role::Heuristic::name
23611362µs362µsPath::IsDev::Role::Heuristic::::_blessedPath::IsDev::Role::Heuristic::_blessed
23611274µs274µsPath::IsDev::Role::Heuristic::::CORE:substPath::IsDev::Role::Heuristic::CORE:subst (opcode)
23611259µs259µsPath::IsDev::Role::Heuristic::::heuristic_typePath::IsDev::Role::Heuristic::heuristic_type
11115µs15µsRole::Tiny::::BEGIN@1.53 Role::Tiny::BEGIN@1.53
1117µs11µsRole::Tiny::::BEGIN@3.55 Role::Tiny::BEGIN@3.55
1117µs91µsPath::IsDev::Role::Heuristic::::BEGIN@14Path::IsDev::Role::Heuristic::BEGIN@14
1117µs18µsRole::Tiny::::BEGIN@2.54 Role::Tiny::BEGIN@2.54
1117µs8µsRole::Tiny::::BEGIN@4.56 Role::Tiny::BEGIN@4.56
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1238µs115µs
# spent 15µs within Role::Tiny::BEGIN@1.53 which was called: # once (15µs+0s) by Role::Tiny::_load_module at line 1
use 5.008; # utf8
# spent 15µs making 1 call to Role::Tiny::BEGIN@1.53
2219µs230µs
# spent 18µs (7+12) within Role::Tiny::BEGIN@2.54 which was called: # once (7µs+12µs) by Role::Tiny::_load_module at line 2
use strict;
# spent 18µs making 1 call to Role::Tiny::BEGIN@2.54 # spent 12µs making 1 call to strict::import
3218µs215µs
# spent 11µs (7+4) within Role::Tiny::BEGIN@3.55 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.55 # spent 4µs making 1 call to warnings::import
4270µs29µs
# spent 8µs (7+1) within Role::Tiny::BEGIN@4.56 which was called: # once (7µs+1µs) by Role::Tiny::_load_module at line 4
use utf8;
# spent 8µs making 1 call to Role::Tiny::BEGIN@4.56 # spent 1µs making 1 call to utf8::import
5
6package Path::IsDev::Role::Heuristic;
71500ns$Path::IsDev::Role::Heuristic::VERSION = '1.001000';
8# ABSTRACT: Base role for Heuristic things.
9
101200nsour $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
11
124721.12ms236108µs
# spent 362µs within Path::IsDev::Role::Heuristic::_blessed which was called 236 times, avg 2µs/call: # 236 times (362µs+0s) by Path::IsDev::Role::Heuristic::name at line 41, avg 2µs/call
sub _blessed { require Scalar::Util; goto &Scalar::Util::blessed }
# spent 108µs making 236 calls to Scalar::Util::blessed, avg 459ns/call
13
142114µs2176µs
# spent 91µs (7+84) within Path::IsDev::Role::Heuristic::BEGIN@14 which was called: # once (7µs+84µs) by Role::Tiny::_load_module at line 14
use Role::Tiny qw( requires );
# spent 91µs making 1 call to Path::IsDev::Role::Heuristic::BEGIN@14 # spent 84µs making 1 call to Role::Tiny::import
15
- -
39
# spent 2.39ms (1.65+745µs) within Path::IsDev::Role::Heuristic::name which was called 236 times, avg 10µs/call: # 236 times (1.65ms+745µs) by Path::IsDev::Result::add_reason at line 114 of Path/IsDev/Result.pm, avg 10µs/call
sub name {
4023650µs my $name = shift;
41236180µs236362µs $name = _blessed($name) if _blessed($name);
# spent 362µs making 236 calls to Path::IsDev::Role::Heuristic::_blessed, avg 2µs/call
42236637µs236274µs $name =~ s/\APath::IsDev::Heuristic:/+ :/msx;
# spent 274µs making 236 calls to Path::IsDev::Role::Heuristic::CORE:subst, avg 1µs/call
43236475µs return $name;
44}
45
- -
54
# spent 259µs within Path::IsDev::Role::Heuristic::heuristic_type which was called 236 times, avg 1µs/call: # 236 times (259µs+0s) by Path::IsDev::Result::add_reason at line 122 of Path/IsDev/Result.pm, avg 1µs/call
sub heuristic_type {
55236472µs return 'positive heuristic';
56}
57
- -
7912µs14µsrequires 'matches';
# spent 4µs making 1 call to Role::Tiny::__ANON__[Role/Tiny.pm:63]
80
8113µs1;
82
83__END__
 
# spent 274µs within Path::IsDev::Role::Heuristic::CORE:subst which was called 236 times, avg 1µs/call: # 236 times (274µs+0s) by Path::IsDev::Role::Heuristic::name at line 42, avg 1µs/call
sub Path::IsDev::Role::Heuristic::CORE:subst; # opcode