← Index
NYTProf Performance Profile   « line view »
For /usr/local/bin/sa-learn
  Run on Tue Nov 7 05:38:10 2017
Reported on Tue Nov 7 06:16:02 2017

Filename/usr/local/lib/perl5/5.24/mach/List/Util.pm
StatementsExecuted 13 statements in 1.17ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11159µs66µsList::Util::::BEGIN@9 List::Util::BEGIN@9
11130µs81µsList::Util::::BEGIN@30 List::Util::BEGIN@30
0000s0sList::Util::_Pair::::keyList::Util::_Pair::key
0000s0sList::Util::_Pair::::valueList::Util::_Pair::value
0000s0sList::Util::::import List::Util::import
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
92287µs274µs
# spent 66µs (59+8) within List::Util::BEGIN@9 which was called: # once (59µs+8µs) by Net::DNS::Resolver::Base::BEGIN@46 at line 9
use strict;
# spent 66µs making 1 call to List::Util::BEGIN@9 # spent 8µs making 1 call to strict::import
1012µsrequire Exporter;
11
12120µsour @ISA = qw(Exporter);
1315µ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);
1712µsour $VERSION = "1.42_02";
1812µsour $XS_VERSION = $VERSION;
19138µs$VERSION = eval $VERSION;
# spent 5µs executing statements in string eval
20
2112µsrequire XSLoader;
221523µs1506µsXSLoader::load('List::Util', $XS_VERSION);
# spent 506µs making 1 call to XSLoader::load
23
24sub import
25{
26 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
302253µs2132µs
# spent 81µs (30+52) within List::Util::BEGIN@30 which was called: # once (30µs+52µs) by Net::DNS::Resolver::Base::BEGIN@46 at line 30
no strict 'refs';
# spent 81µs making 1 call to List::Util::BEGIN@30 # spent 52µs making 1 call to strict::unimport
31 ${"${pkg}::a"} = ${"${pkg}::a"};
32 ${"${pkg}::b"} = ${"${pkg}::b"};
33
34 goto &Exporter::import;
35}
36
37# For objects returned by pairs()
38sub List::Util::_Pair::key { shift->[0] }
39sub List::Util::_Pair::value { shift->[1] }
40
41132µs1;
42
43__END__