← 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__