← 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:10 2016

Filename/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/darwin-2level/List/Util.pm
StatementsExecuted 53 statements in 622µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
10285311.1ms38.6msList::Util::::first List::Util::first (xsub)
14211480µs480µsList::Util::::reduce List::Util::reduce (xsub)
10101092µs92µsList::Util::::import List::Util::import
11111µs23µsList::Util::::BEGIN@9 List::Util::BEGIN@9
1116µs16µsList::Util::::BEGIN@30 List::Util::BEGIN@30
0000s0sList::Util::_Pair::::keyList::Util::_Pair::key
0000s0sList::Util::_Pair::::valueList::Util::_Pair::value
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# Copyright (c) 1997-2009 Graham Barr <gbarr@pobox.com>. All rights reserved.
2# This program is free software; you can redistribute it and/or
3# modify it under the same terms as Perl itself.
4#
5# Maintained since 2013 by Paul Evans <leonerd@leonerd.org.uk>
6
7package List::Util;
8
9286µs235µs
# spent 23µs (11+12) within List::Util::BEGIN@9 which was called: # once (11µs+12µs) by Perl::Critic::Command::BEGIN@18 at line 9
use strict;
# spent 23µs making 1 call to List::Util::BEGIN@9 # spent 12µs making 1 call to strict::import
101300nsrequire Exporter;
11
1215µsour @ISA = qw(Exporter);
1313µsour @EXPORT_OK = qw(
14 all any first min max minstr maxstr none notall product reduce sum sum0 shuffle
15 pairs unpairs pairkeys pairvalues pairmap pairgrep pairfirst
16);
171200nsour $VERSION = "1.42";
181100nsour $XS_VERSION = $VERSION;
19112µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
20
211200nsrequire XSLoader;
221295µs1288µsXSLoader::load('List::Util', $XS_VERSION);
# spent 288µs making 1 call to XSLoader::load
23
24sub import
25
# spent 92µs within List::Util::import which was called 10 times, avg 9µs/call: # once (13µs+0s) by Perl::Critic::Policy::InputOutput::ProhibitReadlineInForLoop::BEGIN@15 at line 15 of Perl/Critic/Policy/InputOutput/ProhibitReadlineInForLoop.pm # once (12µs+0s) by Perl::Critic::Policy::TestingAndDebugging::RequireUseWarnings::BEGIN@15 at line 15 of Perl/Critic/Policy/TestingAndDebugging/RequireUseWarnings.pm # once (11µs+0s) by Perl::Critic::Policy::RegularExpressions::ProhibitComplexRegexes::BEGIN@16 at line 16 of Perl/Critic/Policy/RegularExpressions/ProhibitComplexRegexes.pm # once (10µs+0s) by Perl::Critic::Policy::Documentation::RequirePodAtEnd::BEGIN@15 at line 15 of Perl/Critic/Policy/Documentation/RequirePodAtEnd.pm # once (9µs+0s) by Perl::Critic::Document::BEGIN@16 at line 16 of Perl/Critic/Document.pm # once (8µs+0s) by Perl::Critic::Policy::Subroutines::ProhibitManyArgs::BEGIN@16 at line 16 of Perl/Critic/Policy/Subroutines/ProhibitManyArgs.pm # once (8µs+0s) by Perl::Critic::Policy::Subroutines::RequireArgUnpacking::BEGIN@19 at line 19 of Perl/Critic/Policy/Subroutines/RequireArgUnpacking.pm # once (7µs+0s) by PPIx::Regexp::Token::Reference::BEGIN@43 at line 43 of PPIx/Regexp/Token/Reference.pm # once (7µs+0s) by Perl::Critic::Command::BEGIN@18 at line 18 of Perl/Critic/Command.pm # once (7µs+0s) by PPIx::Regexp::Node::BEGIN@39 at line 39 of PPIx/Regexp/Node.pm
{
26107µs my $pkg = caller;
27
28 # (RT88848) Touch the caller's $a and $b, to avoid the warning of
29 # Name "main::a" used only once: possible typo" warning
30287µs225µs
# spent 16µs (6+9) within List::Util::BEGIN@30 which was called: # once (6µs+9µs) by Perl::Critic::Command::BEGIN@18 at line 30
no strict 'refs';
# spent 16µs making 1 call to List::Util::BEGIN@30 # spent 9µs making 1 call to strict::unimport
311036µs ${"${pkg}::a"} = ${"${pkg}::a"};
321022µs ${"${pkg}::b"} = ${"${pkg}::b"};
33
341061µs10242µs goto &Exporter::import;
# spent 242µs making 10 calls to Exporter::import, avg 24µs/call
35}
36
37# For objects returned by pairs()
38sub List::Util::_Pair::key { shift->[0] }
39sub List::Util::_Pair::value { shift->[1] }
40
4116µs1;
42
43__END__
 
# spent 38.6ms (11.1+27.5) within List::Util::first which was called 1028 times, avg 38µs/call: # 1016 times (11.0ms+27.4ms) by PPI::Statement::Sub::prototype at line 100 of PPI/Statement/Sub.pm, avg 38µs/call # 9 times (36µs+68µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 12µs/call # once (26µs+0s) by Perl::Critic::Command::_get_options at line 92 of Perl/Critic/Command.pm # once (8µs+15µs) by Perl::Critic::Command::_get_input at line 211 of Perl/Critic/Command.pm # once (5µs+0s) by Perl::Critic::Command::_get_options at line 93 of Perl/Critic/Command.pm
sub List::Util::first; # xsub
# spent 480µs within List::Util::reduce which was called 142 times, avg 3µs/call: # 142 times (480µs+0s) by Perl::Critic::Document::highest_explicit_perl_version at line 376 of Perl/Critic/Document.pm, avg 3µs/call
sub List::Util::reduce; # xsub