← 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/RegularExpressions/RequireDotMatchAnything.pm
StatementsExecuted 18 statements in 283µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11116µs16µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::BEGIN@10Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@10
1117µs31µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::BEGIN@14Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@14
1117µs11µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::BEGIN@12Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@12
1117µs62µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::BEGIN@18Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@18
1117µs145µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::BEGIN@16Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@16
1117µs18µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::BEGIN@11Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@11
1116µs7µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::default_severityPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::default_severity
1112µs2µsPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::supported_parametersPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::supported_parameters
0000s0sPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::applies_toPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::applies_to
0000s0sPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::default_themesPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::default_themes
0000s0sPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::::violatesPerl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::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::RegularExpressions::RequireDotMatchAnything;
9
10242µs116µs
# spent 16µs within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@10 which was called: # once (16µs+0s) by Module::Pluggable::Object::_require at line 10
use 5.006001;
11219µs229µs
# spent 18µs (7+11) within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@11 which was called: # once (7µs+11µs) by Module::Pluggable::Object::_require at line 11
use strict;
# spent 18µs making 1 call to Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@11 # spent 11µs making 1 call to strict::import
12218µs215µs
# spent 11µs (7+4) within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@12 which was called: # once (7µs+4µs) by Module::Pluggable::Object::_require at line 12
use warnings;
# spent 11µs making 1 call to Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@12 # spent 4µs making 1 call to warnings::import
13
14225µs255µs
# spent 31µs (7+24) within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@14 which was called: # once (7µs+24µs) by Module::Pluggable::Object::_require at line 14
use Readonly;
# spent 31µs making 1 call to Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@14 # spent 24µs making 1 call to Exporter::import
15
16223µs2283µs
# spent 145µs (7+138) within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@16 which was called: # once (7µs+138µs) by Module::Pluggable::Object::_require at line 16
use Perl::Critic::Utils qw{ :severities };
# spent 145µs making 1 call to Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@16 # spent 138µs making 1 call to Exporter::import
17
182143µs2117µs
# spent 62µs (7+55) within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@18 which was called: # once (7µs+55µs) by Module::Pluggable::Object::_require at line 18
use base 'Perl::Critic::Policy';
# spent 62µs making 1 call to Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::BEGIN@18 # spent 55µs making 1 call to base::import
19
201500nsour $VERSION = '1.121';
21
22#-----------------------------------------------------------------------------
23
2412µs128µsReadonly::Scalar my $DESC => q{Regular expression without "/s" flag};
# spent 28µs making 1 call to Readonly::Scalar
2512µs142µsReadonly::Scalar my $EXPL => [ 240, 241 ];
# spent 42µs making 1 call to Readonly::Scalar
26
27#-----------------------------------------------------------------------------
28
2914µs
# spent 2µs within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::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 () }
3012µs
# spent 7µs (6+1) within Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything::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 }
31sub default_themes { return qw<core pbp cosmetic> }
32sub applies_to { return qw<PPI::Token::Regexp::Match
33 PPI::Token::Regexp::Substitute
34 PPI::Token::QuoteLike::Regexp> }
35
36#-----------------------------------------------------------------------------
37
38sub violates {
39 my ( $self, $elem, $doc ) = @_;
40
41 my $re = $doc->ppix_regexp_from_element( $elem )
42 or return;
43 $re->modifier_asserted( 's' )
44 or return $self->violation( $DESC, $EXPL, $elem );
45
46 return; #ok!;
47}
48
4914µs1;
50
51__END__