| Filename | /usr/lib/x86_64-linux-gnu/perl/5.20/List/Util.pm |
| Statements | Executed 17 statements in 504µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 6 | 3 | 1 | 27µs | 32µs | List::Util::first (xsub) |
| 1 | 1 | 1 | 15µs | 30µs | List::Util::BEGIN@9 |
| 1 | 1 | 1 | 11µs | 11µs | List::Util::import |
| 1 | 1 | 1 | 8µs | 19µs | List::Util::BEGIN@30 |
| 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 | 132µs | 2 | 45µs | # spent 30µs (15+15) within List::Util::BEGIN@9 which was called:
# once (15µs+15µs) by C4::Context::BEGIN@100 at line 9 # spent 30µs making 1 call to List::Util::BEGIN@9
# spent 15µs making 1 call to strict::import |
| 10 | 1 | 600ns | require Exporter; | ||
| 11 | |||||
| 12 | 1 | 10µs | our @ISA = qw(Exporter); | ||
| 13 | 1 | 2µ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 | 300ns | our $VERSION = "1.38"; | ||
| 18 | 1 | 200ns | our $XS_VERSION = $VERSION; | ||
| 19 | 1 | 15µs | $VERSION = eval $VERSION; # spent 2µs executing statements in string eval | ||
| 20 | |||||
| 21 | 1 | 400ns | require XSLoader; | ||
| 22 | 1 | 232µs | 1 | 223µs | XSLoader::load('List::Util', $XS_VERSION); # spent 223µ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 MIME::Types::BEGIN@16 at line 16 of MIME/Types.pm | ||||
| 26 | 1 | 800ns | 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 | 89µs | 2 | 30µs | # spent 19µs (8+11) within List::Util::BEGIN@30 which was called:
# once (8µs+11µs) by C4::Context::BEGIN@100 at line 30 # spent 19µs making 1 call to List::Util::BEGIN@30
# spent 11µs making 1 call to strict::unimport |
| 31 | 1 | 5µs | ${"${pkg}::a"} = ${"${pkg}::a"}; | ||
| 32 | 1 | 2µs | ${"${pkg}::b"} = ${"${pkg}::b"}; | ||
| 33 | |||||
| 34 | 1 | 7µs | 1 | 58µs | goto &Exporter::import; # spent 58µs making 1 call to Exporter::import |
| 35 | } | ||||
| 36 | |||||
| 37 | 1 | 8µs | 1; | ||
| 38 | |||||
| 39 | __END__ | ||||
# spent 32µs (27+5) within List::Util::first which was called 6 times, avg 5µs/call:
# 2 times (18µs+2µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm, avg 10µs/call
# 2 times (8µs+3µs) by Sub::Exporter::Progressive::__ANON__[/usr/share/perl5/Sub/Exporter/Progressive.pm:40] at line 26 of Sub/Exporter/Progressive.pm, avg 6µs/call
# 2 times (2µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm, avg 950ns/call |