← Index
NYTProf Performance Profile   « line view »
For /usr/sbin/pkg_info
  Run on Mon Aug 7 09:39:31 2017
Reported on Mon Aug 7 09:40:21 2017

Filename/usr/libdata/perl5/amd64-openbsd/List/Util.pm
StatementsExecuted 13 statements in 908µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11126µs31µsList::Util::::BEGIN@9 List::Util::BEGIN@9
11115µs43µ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
92175µs237µs
# spent 31µs (26+6) within List::Util::BEGIN@9 which was called: # once (26µs+6µs) by IO::Compress::Base::Common::BEGIN@8 at line 9
use strict;
# spent 31µs making 1 call to List::Util::BEGIN@9 # spent 6µs making 1 call to strict::import
1011µsrequire Exporter;
11
1218µ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);
1711µsour $VERSION = "1.42_02";
181800nsour $XS_VERSION = $VERSION;
19120µs$VERSION = eval $VERSION;
# spent 5µs executing statements in string eval
20
2111µsrequire XSLoader;
221474µs1462µsXSLoader::load('List::Util', $XS_VERSION);
# spent 462µ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
302210µs272µs
# spent 43µs (15+29) within List::Util::BEGIN@30 which was called: # once (15µs+29µs) by IO::Compress::Base::Common::BEGIN@8 at line 30
no strict 'refs';
# spent 43µs making 1 call to List::Util::BEGIN@30 # spent 29µ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
41113µs1;
42
43__END__