← Index
NYTProf Performance Profile   « line view »
For /usr/local/bin/sa-learn
  Run on Sun Nov 5 03:09:29 2017
Reported on Mon Nov 6 13:20:47 2017

Filename/usr/local/lib/perl5/5.24/mach/List/Util.pm
StatementsExecuted 13 statements in 971µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11142µs51µsList::Util::::BEGIN@9 List::Util::BEGIN@9
11122µs78µ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
92218µs259µs
# spent 51µs (42+8) within List::Util::BEGIN@9 which was called: # once (42µs+8µs) by Net::DNS::Resolver::Base::BEGIN@46 at line 9
use strict;
# spent 51µs making 1 call to List::Util::BEGIN@9 # spent 8µs making 1 call to strict::import
1012µsrequire Exporter;
11
12110µ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;
19124µs$VERSION = eval $VERSION;
# spent 5µs executing statements in string eval
20
2112µsrequire XSLoader;
221473µs1456µsXSLoader::load('List::Util', $XS_VERSION);
# spent 456µ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
302215µs2134µs
# spent 78µs (22+56) within List::Util::BEGIN@30 which was called: # once (22µs+56µs) by Net::DNS::Resolver::Base::BEGIN@46 at line 30
no strict 'refs';
# spent 78µs making 1 call to List::Util::BEGIN@30 # spent 56µ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
41118µs1;
42
43__END__