← 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/Policy/ValuesAndExpressions/RequireUpperCaseHeredocTerminator.pm
StatementsExecuted 19 statements in 323µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs18µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::BEGIN@10Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@10
1118µs12µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::BEGIN@12Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@12
1118µs29µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::BEGIN@13Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@13
1117µs19µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::BEGIN@11Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@11
1117µs64µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::BEGIN@16Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@16
1117µs155µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::BEGIN@15Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@15
1116µs7µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::default_severityPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::default_severity
1112µs2µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::supported_parametersPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::supported_parameters
1112µs2µsPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::CORE:qrPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::CORE:qr (opcode)
0000s0sPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::applies_toPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::applies_to
0000s0sPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::default_themesPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::default_themes
0000s0sPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::::violatesPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::violates
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::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator;
9
10241µs118µs
# spent 18µs within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@10 which was called: # once (18µs+0s) by Module::Pluggable::Object::_require at line 10
use 5.006001;
11224µs231µs
# spent 19µs (7+12) within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@11 which was called: # once (7µs+12µs) by Module::Pluggable::Object::_require at line 11
use strict;
12219µs216µs
# spent 12µs (8+4) within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@12 which was called: # once (8µs+4µs) by Module::Pluggable::Object::_require at line 12
use warnings;
13223µs251µs
# spent 29µs (8+22) within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@13 which was called: # once (8µs+22µs) by Module::Pluggable::Object::_require at line 13
use Readonly;
14
15224µs2303µs
# spent 155µs (7+148) within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@15 which was called: # once (7µs+148µs) by Module::Pluggable::Object::_require at line 15
use Perl::Critic::Utils qw{ :severities };
162170µs2121µs
# spent 64µs (7+57) within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::BEGIN@16 which was called: # once (7µs+57µs) by Module::Pluggable::Object::_require at line 16
use base 'Perl::Critic::Policy';
17
181600nsour $VERSION = '1.121';
19
20#-----------------------------------------------------------------------------
21
22110µs229µsReadonly::Scalar my $HEREDOC_RX => qr{ \A << \s* (["']?) [[:upper:]_] [[:upper:]\d_]* \1 \z }xms;
2311µs122µsReadonly::Scalar my $DESC => q{Heredoc terminator not alphanumeric and upper-case};
# spent 22µs making 1 call to Readonly::Scalar
2412µs144µsReadonly::Scalar my $EXPL => [ 64 ];
# spent 44µs making 1 call to Readonly::Scalar
25
26#-----------------------------------------------------------------------------
27
2814µs
# spent 2µs within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::supported_parameters which was called: # once (2µs+0s) by Perl::Critic::Policy::new at line 88 of Perl/Critic/Policy.pm
sub supported_parameters { return () }
2912µs
# spent 7µs (6+1) within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::default_severity which was called: # once (6µs+1µs) by Perl::Critic::Policy::get_severity at line 331 of Perl/Critic/Policy.pm
sub default_severity { return $SEVERITY_LOW }
30sub default_themes { return qw(core pbp cosmetic) }
31sub applies_to { return 'PPI::Token::HereDoc' }
32
33#-----------------------------------------------------------------------------
34
35sub violates {
36 my ( $self, $elem, undef ) = @_;
37
38 if ( $elem !~ $HEREDOC_RX ) {
39 return $self->violation( $DESC, $EXPL, $elem );
40 }
41 return; #ok!
42}
43
4414µs1;
45
46__END__
 
# spent 2µs within Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::CORE:qr which was called: # once (2µs+0s) by Module::Pluggable::Object::_require at line 22
sub Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator::CORE:qr; # opcode