← 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:11 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Perl/Critic/PolicyParameter/Behavior/String.pm
StatementsExecuted 136 statements in 338µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
231190µs126µsPerl::Critic::PolicyParameter::Behavior::String::::initialize_parameterPerl::Critic::PolicyParameter::Behavior::String::initialize_parameter
111175µs196µsPerl::Critic::PolicyParameter::Behavior::String::::_parsePerl::Critic::PolicyParameter::Behavior::String::_parse
11115µs15µsPerl::Critic::PolicyParameter::Behavior::String::::BEGIN@10Perl::Critic::PolicyParameter::Behavior::String::BEGIN@10
11112µs918µsPerl::Critic::PolicyParameter::Behavior::String::::BEGIN@14Perl::Critic::PolicyParameter::Behavior::String::BEGIN@14
1117µs61µsPerl::Critic::PolicyParameter::Behavior::String::::BEGIN@16Perl::Critic::PolicyParameter::Behavior::String::BEGIN@16
1117µs10µsPerl::Critic::PolicyParameter::Behavior::String::::BEGIN@12Perl::Critic::PolicyParameter::Behavior::String::BEGIN@12
1117µs18µsPerl::Critic::PolicyParameter::Behavior::String::::BEGIN@11Perl::Critic::PolicyParameter::Behavior::String::BEGIN@11
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1##############################################################################
2# $URL$
3# $Date$
4# $Author$
5# $Revision$
6##############################################################################
7
8package Perl::Critic::PolicyParameter::Behavior::String;
9
10240µs115µs
# spent 15µs within Perl::Critic::PolicyParameter::Behavior::String::BEGIN@10 which was called: # once (15µs+0s) by Perl::Critic::PolicyParameter::BEGIN@27 at line 10
use 5.006001;
11219µs229µs
# spent 18µs (7+11) within Perl::Critic::PolicyParameter::Behavior::String::BEGIN@11 which was called: # once (7µs+11µs) by Perl::Critic::PolicyParameter::BEGIN@27 at line 11
use strict;
# spent 18µs making 1 call to Perl::Critic::PolicyParameter::Behavior::String::BEGIN@11 # spent 11µs making 1 call to strict::import
12218µs214µs
# spent 10µs (7+4) within Perl::Critic::PolicyParameter::Behavior::String::BEGIN@12 which was called: # once (7µs+4µs) by Perl::Critic::PolicyParameter::BEGIN@27 at line 12
use warnings;
# spent 10µs making 1 call to Perl::Critic::PolicyParameter::Behavior::String::BEGIN@12 # spent 4µs making 1 call to warnings::import
13
14225µs21.82ms
# spent 918µs (12+906) within Perl::Critic::PolicyParameter::Behavior::String::BEGIN@14 which was called: # once (12µs+906µs) by Perl::Critic::PolicyParameter::BEGIN@27 at line 14
use Perl::Critic::Utils;
# spent 918µs making 1 call to Perl::Critic::PolicyParameter::Behavior::String::BEGIN@14 # spent 906µs making 1 call to Exporter::import
15
162102µs261µs
# spent 61µs (7+53) within Perl::Critic::PolicyParameter::Behavior::String::BEGIN@16 which was called: # once (7µs+53µs) by Perl::Critic::PolicyParameter::BEGIN@27 at line 16
use base qw{ Perl::Critic::PolicyParameter::Behavior };
# spent 61µs making 1 call to Perl::Critic::PolicyParameter::Behavior::String::BEGIN@16 # spent 53µs making 1 call to base::import, recursion: max depth 1, sum of overlapping time 53µs
17
181600nsour $VERSION = '1.121';
19
20#-----------------------------------------------------------------------------
21
22
# spent 196µs (75+121) within Perl::Critic::PolicyParameter::Behavior::String::_parse which was called 11 times, avg 18µs/call: # 11 times (75µs+121µs) by Perl::Critic::PolicyParameter::parse_and_validate_config_value at line 231 of Perl/Critic/PolicyParameter.pm, avg 18µs/call
sub _parse {
23113µs my ($policy, $parameter, $config_string) = @_;
24
251112µs1113µs my $value = $parameter->get_default_string();
# spent 13µs making 11 calls to Perl::Critic::PolicyParameter::get_default_string, avg 1µs/call
26
27111µs if ( defined $config_string ) {
28 $value = $config_string;
29 }
30
311118µs11108µs $policy->__set_parameter_value($parameter, $value);
# spent 108µs making 11 calls to Perl::Critic::Policy::__set_parameter_value, avg 10µs/call
32
331120µs return;
34}
35
36#-----------------------------------------------------------------------------
37
38
# spent 126µs (90+36) within Perl::Critic::PolicyParameter::Behavior::String::initialize_parameter which was called 23 times, avg 5µs/call: # 23 times (90µs+36µs) by Perl::Critic::PolicyParameter::_initialize_from_behavior at line 115 of Perl/Critic/PolicyParameter.pm, avg 5µs/call
sub initialize_parameter {
39236µs my ($self, $parameter, $specification) = @_;
40
412327µs2336µs $parameter->_set_parser(\&_parse);
# spent 36µs making 23 calls to Perl::Critic::PolicyParameter::_set_parser, avg 2µs/call
42
432343µs return;
44}
45
46#-----------------------------------------------------------------------------
47
4812µs1;
49
50__END__