Filename | /usr/local/lib/perl5/5.24/mach/List/Util.pm |
Statements | Executed 13 statements in 1.17ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 59µs | 66µs | BEGIN@9 | List::Util::
1 | 1 | 1 | 30µs | 81µs | BEGIN@30 | List::Util::
0 | 0 | 0 | 0s | 0s | key | List::Util::_Pair::
0 | 0 | 0 | 0s | 0s | value | List::Util::_Pair::
0 | 0 | 0 | 0s | 0s | import | List::Util::
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 | |||||
7 | package List::Util; | ||||
8 | |||||
9 | 2 | 287µs | 2 | 74µ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 # spent 66µs making 1 call to List::Util::BEGIN@9
# spent 8µs making 1 call to strict::import |
10 | 1 | 2µs | require Exporter; | ||
11 | |||||
12 | 1 | 20µs | our @ISA = qw(Exporter); | ||
13 | 1 | 5µs | our @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 | ); | ||||
17 | 1 | 2µs | our $VERSION = "1.42_02"; | ||
18 | 1 | 2µs | our $XS_VERSION = $VERSION; | ||
19 | 1 | 38µs | $VERSION = eval $VERSION; # spent 5µs executing statements in string eval | ||
20 | |||||
21 | 1 | 2µs | require XSLoader; | ||
22 | 1 | 523µs | 1 | 506µs | XSLoader::load('List::Util', $XS_VERSION); # spent 506µs making 1 call to XSLoader::load |
23 | |||||
24 | sub 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 | ||||
30 | 2 | 253µs | 2 | 132µ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 # 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() | ||||
38 | sub List::Util::_Pair::key { shift->[0] } | ||||
39 | sub List::Util::_Pair::value { shift->[1] } | ||||
40 | |||||
41 | 1 | 32µs | 1; | ||
42 | |||||
43 | __END__ |