← 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/Utils/DataConversion.pm
StatementsExecuted 111 statements in 362µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
25252192µs240µsPerl::Critic::Utils::DataConversion::::dorPerl::Critic::Utils::DataConversion::dor
55127µs33µsPerl::Critic::Utils::DataConversion::::boolean_to_numberPerl::Critic::Utils::DataConversion::boolean_to_number
11115µs15µsPerl::Critic::Utils::DataConversion::::BEGIN@10Perl::Critic::Utils::DataConversion::BEGIN@10
1118µs13µsPerl::Critic::Utils::DataConversion::::BEGIN@17Perl::Critic::Utils::DataConversion::BEGIN@17
1117µs11µsPerl::Critic::Utils::DataConversion::::BEGIN@12Perl::Critic::Utils::DataConversion::BEGIN@12
1117µs26µsPerl::Critic::Utils::DataConversion::::BEGIN@13Perl::Critic::Utils::DataConversion::BEGIN@13
1117µs277µsPerl::Critic::Utils::DataConversion::::BEGIN@15Perl::Critic::Utils::DataConversion::BEGIN@15
1116µs17µsPerl::Critic::Utils::DataConversion::::BEGIN@11Perl::Critic::Utils::DataConversion::BEGIN@11
0000s0sPerl::Critic::Utils::DataConversion::::defined_or_emptyPerl::Critic::Utils::DataConversion::defined_or_empty
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::Utils::DataConversion;
9
10236µs115µs
# spent 15µs within Perl::Critic::Utils::DataConversion::BEGIN@10 which was called: # once (15µs+0s) by Perl::Critic::Policy::BEGIN@33 at line 10
use 5.006001;
# spent 15µs making 1 call to Perl::Critic::Utils::DataConversion::BEGIN@10
11222µs228µs
# spent 17µs (6+11) within Perl::Critic::Utils::DataConversion::BEGIN@11 which was called: # once (6µs+11µs) by Perl::Critic::Policy::BEGIN@33 at line 11
use strict;
# spent 17µs making 1 call to Perl::Critic::Utils::DataConversion::BEGIN@11 # spent 11µs making 1 call to strict::import
12223µs214µs
# spent 11µs (7+4) within Perl::Critic::Utils::DataConversion::BEGIN@12 which was called: # once (7µs+4µs) by Perl::Critic::Policy::BEGIN@33 at line 12
use warnings;
# spent 11µs making 1 call to Perl::Critic::Utils::DataConversion::BEGIN@12 # spent 4µs making 1 call to warnings::import
13224µs245µs
# spent 26µs (7+19) within Perl::Critic::Utils::DataConversion::BEGIN@13 which was called: # once (7µs+19µs) by Perl::Critic::Policy::BEGIN@33 at line 13
use Readonly;
# spent 26µs making 1 call to Perl::Critic::Utils::DataConversion::BEGIN@13 # spent 19µs making 1 call to Exporter::import
14
15222µs2548µs
# spent 277µs (7+271) within Perl::Critic::Utils::DataConversion::BEGIN@15 which was called: # once (7µs+271µs) by Perl::Critic::Policy::BEGIN@33 at line 15
use Perl::Critic::Utils qw{ :characters :booleans };
# spent 277µs making 1 call to Perl::Critic::Utils::DataConversion::BEGIN@15 # spent 271µs making 1 call to Exporter::import
16
172114µs219µs
# spent 13µs (8+6) within Perl::Critic::Utils::DataConversion::BEGIN@17 which was called: # once (8µs+6µs) by Perl::Critic::Policy::BEGIN@33 at line 17
use Exporter 'import';
# spent 13µs making 1 call to Perl::Critic::Utils::DataConversion::BEGIN@17 # spent 6µs making 1 call to Exporter::import
18
191500nsour $VERSION = '1.121';
20
21#-----------------------------------------------------------------------------
22
2312µs132µsReadonly::Array our @EXPORT_OK => qw(
# spent 32µs making 1 call to Readonly::Array
24 boolean_to_number
25 dor
26 defined_or_empty
27);
28
29#-----------------------------------------------------------------------------
30
31
# spent 33µs (27+6) within Perl::Critic::Utils::DataConversion::boolean_to_number which was called 5 times, avg 7µs/call: # once (7µs+1µs) by Perl::Critic::Config::_init at line 126 of Perl/Critic/Config.pm # once (6µs+1µs) by Perl::Critic::Config::_init at line 123 of Perl/Critic/Config.pm # once (5µs+1µs) by Perl::Critic::Config::_init at line 125 of Perl/Critic/Config.pm # once (5µs+1µs) by Perl::Critic::Config::_init at line 124 of Perl/Critic/Config.pm # once (4µs+1µs) by Perl::Critic::Config::_init at line 130 of Perl/Critic/Config.pm
sub boolean_to_number { ## no critic (RequireArgUnpacking)
3258µs return $_[0] ? $TRUE : $FALSE;
33}
34
35#-----------------------------------------------------------------------------
36
37
# spent 240µs (192+48) within Perl::Critic::Utils::DataConversion::dor which was called 25 times, avg 10µs/call: # once (17µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 44 of Perl/Critic/OptionsProcessor.pm # once (13µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 74 of Perl/Critic/OptionsProcessor.pm # once (10µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 81 of Perl/Critic/OptionsProcessor.pm # once (10µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 67 of Perl/Critic/OptionsProcessor.pm # once (10µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 88 of Perl/Critic/OptionsProcessor.pm # once (10µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 95 of Perl/Critic/OptionsProcessor.pm # once (9µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 47 of Perl/Critic/OptionsProcessor.pm # once (9µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 60 of Perl/Critic/OptionsProcessor.pm # once (8µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 50 of Perl/Critic/OptionsProcessor.pm # once (8µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 56 of Perl/Critic/OptionsProcessor.pm # once (8µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 64 of Perl/Critic/OptionsProcessor.pm # once (8µs+3µs) by Perl::Critic::OptionsProcessor::_init at line 58 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 59 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 54 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 55 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 61 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 63 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 65 of Perl/Critic/OptionsProcessor.pm # once (8µs+2µs) by Perl::Critic::OptionsProcessor::_init at line 62 of Perl/Critic/OptionsProcessor.pm # once (4µs+0s) by Perl::Critic::Config::_init at line 123 of Perl/Critic/Config.pm # once (3µs+0s) by Perl::Critic::OptionsProcessor::_init at line 106 of Perl/Critic/OptionsProcessor.pm # once (2µs+0s) by Perl::Critic::Config::_init at line 130 of Perl/Critic/Config.pm # once (2µs+0s) by Perl::Critic::Config::_init at line 124 of Perl/Critic/Config.pm # once (2µs+0s) by Perl::Critic::Config::_init at line 125 of Perl/Critic/Config.pm # once (2µs+0s) by Perl::Critic::Config::_init at line 126 of Perl/Critic/Config.pm
sub dor { ## no critic (RequireArgUnpacking)
382513µs foreach (@_) {
396694µs1922µs defined $_ and return $_;
# spent 22µs making 19 calls to Readonly::Scalar::FETCH, avg 1µs/call
40 }
41 return;
42}
43
44#-----------------------------------------------------------------------------
45
46sub defined_or_empty { ## no critic (RequireArgUnpacking)
47 return defined $_[0] ? $_[0] : $EMPTY;
48}
49
5013µs1;
51
52__END__