← Index
NYTProf Performance Profile   « line view »
For runner.pl
  Run on Thu Jul 3 15:14:19 2014
Reported on Thu Jul 3 15:16:35 2014

Filename/usr/lib/perl5/site_perl/List/Util.pm
StatementsExecuted 25 statements in 1.26ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
732318257.4ms57.4msList::Util::::sum List::Util::sum (xsub)
33704118.6ms18.6msList::Util::::max List::Util::max (xsub)
1181117.00ms7.00msList::Util::::any List::Util::any (xsub)
1181112.15ms2.15msList::Util::::min List::Util::min (xsub)
33356µs56µsList::Util::::import List::Util::import
11126µs62µsList::Util::::BEGIN@9 List::Util::BEGIN@9
11118µs46µ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
92316µs298µs
# spent 62µs (26+36) within List::Util::BEGIN@9 which was called: # once (26µs+36µs) by Runner::BEGIN@14 at line 9
use strict;
# spent 62µs making 1 call to List::Util::BEGIN@9 # spent 36µs making 1 call to strict::import
1011µsrequire Exporter;
11
12116µsour @ISA = qw(Exporter);
1319µsour @EXPORT_OK = qw(
14 all any first min max minstr maxstr none notall product reduce sum sum0 shuffle
15 pairmap pairgrep pairfirst pairs pairkeys pairvalues
16);
171800nsour $VERSION = "1.39";
181500nsour $XS_VERSION = $VERSION;
19135µs$VERSION = eval $VERSION;
# spent 6µs executing statements in string eval
20
211900nsrequire XSLoader;
221473µs1456µsXSLoader::load('List::Util', $XS_VERSION);
# spent 456µs making 1 call to XSLoader::load
23
24sub import
25
# spent 56µs within List::Util::import which was called 3 times, avg 19µs/call: # once (21µs+0s) by Runner::BEGIN@14 at line 14 of runner.pl # once (18µs+0s) by Runner::Stats::BEGIN@7 at line 7 of Runner/Stats.pm # once (18µs+0s) by Runner::IO::BEGIN@6 at line 6 of Runner/IO.pm
{
2636µ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
302297µs273µs
# spent 46µs (18+28) within List::Util::BEGIN@30 which was called: # once (18µs+28µs) by Runner::BEGIN@14 at line 30
no strict 'refs';
# spent 46µs making 1 call to List::Util::BEGIN@30 # spent 28µs making 1 call to strict::unimport
31322µs ${"${pkg}::a"} = ${"${pkg}::a"};
32311µs ${"${pkg}::b"} = ${"${pkg}::b"};
33
34351µs3288µs goto &Exporter::import;
# spent 288µs making 3 calls to Exporter::import, avg 96µ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
41118µs1;
42
43__END__
 
# spent 7.00ms within List::Util::any which was called 1181 times, avg 6µs/call: # 1181 times (7.00ms+0s) by Runner::Stats::computeOnMessages at line 107 of Runner/Stats.pm, avg 6µs/call
sub List::Util::any; # xsub
# spent 18.6ms within List::Util::max which was called 3370 times, avg 6µs/call: # 1000 times (5.47ms+0s) by Runner::Stats::computeOnMessages at line 98 of Runner/Stats.pm, avg 5µs/call # 800 times (4.56ms+0s) by Runner::Stats::computeOnMessages at line 74 of Runner/Stats.pm, avg 6µs/call # 800 times (4.32ms+0s) by Runner::Stats::computeOnMessages at line 149 of Runner/Stats.pm, avg 5µs/call # 770 times (4.30ms+0s) by Runner::Stats::computeOnMessages at line 122 of Runner/Stats.pm, avg 6µs/call
sub List::Util::max; # xsub
# spent 2.15ms within List::Util::min which was called 1181 times, avg 2µs/call: # 1181 times (2.15ms+0s) by Runner::Stats::computeOnMessages at line 159 of Runner/Stats.pm, avg 2µs/call
sub List::Util::min; # xsub
# spent 57.4ms within List::Util::sum which was called 7323 times, avg 8µs/call: # 1000 times (9.70ms+0s) by Runner::Stats::computeOnMessages at line 94 of Runner/Stats.pm, avg 10µs/call # 800 times (7.45ms+0s) by Runner::Stats::computeOnMessages at line 139 of Runner/Stats.pm, avg 9µs/call # 800 times (7.16ms+0s) by Runner::Stats::computeOnMessages at line 68 of Runner/Stats.pm, avg 9µs/call # 800 times (5.78ms+0s) by Runner::Stats::computeOnMessages at line 71 of Runner/Stats.pm, avg 7µs/call # 800 times (5.40ms+0s) by Runner::Stats::computeOnMessages at line 69 of Runner/Stats.pm, avg 7µs/call # 800 times (4.84ms+0s) by Runner::Stats::computeOnMessages at line 70 of Runner/Stats.pm, avg 6µs/call # 770 times (6.04ms+0s) by Runner::Stats::computeOnMessages at line 117 of Runner/Stats.pm, avg 8µs/call # 770 times (5.68ms+0s) by Runner::Stats::computeOnMessages at line 119 of Runner/Stats.pm, avg 7µs/call # 770 times (5.27ms+0s) by Runner::Stats::computeOnMessages at line 118 of Runner/Stats.pm, avg 7µs/call # 5 times (4µs+0s) by Runner::IO::dump_node_data at line 159 of Runner/IO.pm, avg 900ns/call # once (20µs+0s) by Runner::Stats::computeAtTheEnd at line 242 of Runner/Stats.pm # once (18µs+0s) by Runner::Stats::computeAtTheEnd at line 244 of Runner/Stats.pm # once (17µs+0s) by Runner::Stats::computeAtTheEnd at line 199 of Runner/Stats.pm # once (17µs+0s) by Runner::Stats::computeAtTheEnd at line 189 of Runner/Stats.pm # once (15µs+0s) by Runner::Stats::computeAtTheEnd at line 201 of Runner/Stats.pm # once (14µs+0s) by Runner::Stats::computeAtTheEnd at line 191 of Runner/Stats.pm # once (7µs+0s) by Runner::Stats::computeAtTheEnd at line 216 of Runner/Stats.pm # once (4µs+0s) by Runner::Stats::computeAtTheEnd at line 217 of Runner/Stats.pm
sub List::Util::sum; # xsub