← 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/Perl/Critic/Policy/InputOutput/ProhibitExplicitStdin.pm
StatementsExecuted 20 statements in 472µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11126µs26µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@10Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@10
11112µs665µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@16Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@16
11112µs92µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@17Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@17
11111µs18µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@12Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@12
11111µs45µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@13Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@13
11111µs223µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@14Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@14
11110µs29µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::BEGIN@11Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@11
1119µs11µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::default_severityPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::default_severity
1112µs2µsPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::supported_parametersPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::supported_parameters
0000s0sPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::applies_toPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::applies_to
0000s0sPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::default_themesPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::default_themes
0000s0sPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::::violatesPerl::Critic::Policy::InputOutput::ProhibitExplicitStdin::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::InputOutput::ProhibitExplicitStdin;
9
10263µs126µs
# spent 26µs within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@10 which was called: # once (26µs+0s) by Module::Pluggable::Object::_require at line 10
use 5.006001;
11232µs248µs
# spent 29µs (10+19) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@11 which was called: # once (10µs+19µs) by Module::Pluggable::Object::_require at line 11
use strict;
# spent 29µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@11 # spent 19µs making 1 call to strict::import
12230µs224µs
# spent 18µs (11+6) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@12 which was called: # once (11µs+6µs) by Module::Pluggable::Object::_require at line 12
use warnings;
# spent 18µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@12 # spent 6µs making 1 call to warnings::import
13235µs279µs
# spent 45µs (11+34) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@13 which was called: # once (11µs+34µs) by Module::Pluggable::Object::_require at line 13
use Readonly;
# spent 45µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@13 # spent 34µs making 1 call to Exporter::import
14240µs2435µs
# spent 223µs (11+212) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@14 which was called: # once (11µs+212µs) by Module::Pluggable::Object::_require at line 14
use List::MoreUtils qw(any);
# spent 223µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@14 # spent 212µs making 1 call to Exporter::Tiny::import
15
16238µs21.32ms
# spent 665µs (12+653) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@16 which was called: # once (12µs+653µs) by Module::Pluggable::Object::_require at line 16
use Perl::Critic::Utils qw{ :severities :classification &parse_arg_list };
# spent 665µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@16 # spent 653µs making 1 call to Exporter::import
172215µs2171µs
# spent 92µs (12+80) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@17 which was called: # once (12µs+80µs) by Module::Pluggable::Object::_require at line 17
use base 'Perl::Critic::Policy';
# spent 92µs making 1 call to Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::BEGIN@17 # spent 80µs making 1 call to base::import
18
191900nsour $VERSION = '1.121';
20
21#-----------------------------------------------------------------------------
22
2313µs154µsReadonly::Scalar my $DESC => q{Use "<>" or "<ARGV>" or a prompting module instead of "<STDIN>"};
# spent 54µs making 1 call to Readonly::Scalar
2413µs175µsReadonly::Scalar my $EXPL => [216,220,221];
# spent 75µs making 1 call to Readonly::Scalar
25
26#-----------------------------------------------------------------------------
27
2814µs
# spent 2µs within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::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 11µs (9+2) within Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin::default_severity which was called: # once (9µs+2µs) by Perl::Critic::Policy::get_severity at line 331 of Perl/Critic/Policy.pm
sub default_severity { return $SEVERITY_HIGH }
30sub default_themes { return qw( core pbp maintenance ) }
31sub applies_to { return 'PPI::Token::QuoteLike::Readline' }
32
33#-----------------------------------------------------------------------------
34
35sub violates {
36 my ( $self, $elem, undef ) = @_;
37
38 return if $elem ne '<STDIN>';
39 return $self->violation( $DESC, $EXPL, $elem );
40}
41
42
4315µs1;
44
45__END__