Filename | /home/ss5/perl5/perlbrew/perls/tapper-perl/lib/site_perl/5.16.3/x86_64-linux/List/Util.pm |
Statements | Executed 17 statements in 588µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
7 | 1 | 1 | 43µs | 103µs | first (xsub) | List::Util::
1 | 1 | 1 | 23µs | 46µs | BEGIN@9 | List::Util::
1 | 1 | 1 | 11µs | 11µs | import | List::Util::
1 | 1 | 1 | 10µs | 24µs | BEGIN@30 | 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 | 131µs | 2 | 68µs | # spent 46µs (23+22) within List::Util::BEGIN@9 which was called:
# once (23µs+22µs) by Test::Deep::Cache::Simple::BEGIN@7 at line 9 # spent 46µs making 1 call to List::Util::BEGIN@9
# spent 22µs making 1 call to strict::import |
10 | 1 | 600ns | require Exporter; | ||
11 | |||||
12 | 1 | 8µs | our @ISA = qw(Exporter); | ||
13 | 1 | 4µs | our @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 | ); | ||||
17 | 1 | 400ns | our $VERSION = "1.38"; | ||
18 | 1 | 300ns | our $XS_VERSION = $VERSION; | ||
19 | 1 | 19µs | $VERSION = eval $VERSION; # spent 2µs executing statements in string eval | ||
20 | |||||
21 | 1 | 700ns | require XSLoader; | ||
22 | 1 | 322µs | 1 | 312µs | XSLoader::load('List::Util', $XS_VERSION); # spent 312µs making 1 call to XSLoader::load |
23 | |||||
24 | sub import | ||||
25 | # spent 11µs within List::Util::import which was called:
# once (11µs+0s) by Data::DPath::Context::BEGIN@14 at line 14 of lib/Data/DPath/Context.pm | ||||
26 | 1 | 1µ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 | ||||
30 | 2 | 78µs | 2 | 38µs | # spent 24µs (10+14) within List::Util::BEGIN@30 which was called:
# once (10µs+14µs) by Test::Deep::Cache::Simple::BEGIN@7 at line 30 # spent 24µs making 1 call to List::Util::BEGIN@30
# spent 14µs making 1 call to strict::unimport |
31 | 1 | 4µs | ${"${pkg}::a"} = ${"${pkg}::a"}; | ||
32 | 1 | 3µs | ${"${pkg}::b"} = ${"${pkg}::b"}; | ||
33 | |||||
34 | 1 | 8µs | 1 | 75µs | goto &Exporter::import; # spent 75µs making 1 call to Exporter::import |
35 | } | ||||
36 | |||||
37 | 1 | 8µs | 1; | ||
38 | |||||
39 | __END__ | ||||
# spent 103µs (43+60) within List::Util::first which was called 7 times, avg 15µs/call:
# 7 times (43µs+60µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 15µs/call |