Filename | /usr/local/lib/perl/5.14.2/List/Util.pm |
Statements | Executed 61 statements in 450µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
43 | 4 | 2 | 136µs | 322µs | first (xsub) | List::Util::
6 | 6 | 6 | 59µs | 59µs | import | List::Util::
1 | 1 | 1 | 12µs | 15µs | BEGIN@11 | List::Util::
1 | 1 | 1 | 6µs | 16µs | BEGIN@32 | List::Util::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # List::Util.pm | ||||
2 | # | ||||
3 | # Copyright (c) 1997-2009 Graham Barr <gbarr@pobox.com>. All rights reserved. | ||||
4 | # This program is free software; you can redistribute it and/or | ||||
5 | # modify it under the same terms as Perl itself. | ||||
6 | # | ||||
7 | # Maintained since 2013 by Paul Evans <leonerd@leonerd.org.uk> | ||||
8 | |||||
9 | package List::Util; | ||||
10 | |||||
11 | 2 | 102µs | 2 | 18µs | # spent 15µs (12+3) within List::Util::BEGIN@11 which was called:
# once (12µs+3µs) by Value::Convertor::BEGIN@53 at line 11 # spent 15µs making 1 call to List::Util::BEGIN@11
# spent 3µs making 1 call to strict::import |
12 | 1 | 500ns | require Exporter; | ||
13 | |||||
14 | 1 | 5µs | our @ISA = qw(Exporter); | ||
15 | 1 | 3µs | our @EXPORT_OK = qw( | ||
16 | all any first min max minstr maxstr none notall product reduce sum sum0 shuffle | ||||
17 | pairmap pairgrep pairfirst pairs pairkeys pairvalues | ||||
18 | ); | ||||
19 | 1 | 200ns | our $VERSION = "1.35"; | ||
20 | 1 | 200ns | our $XS_VERSION = $VERSION; | ||
21 | 1 | 13µs | $VERSION = eval $VERSION; # spent 2µs executing statements in string eval | ||
22 | |||||
23 | 1 | 300ns | require XSLoader; | ||
24 | 1 | 177µs | 1 | 170µs | XSLoader::load('List::Util', $XS_VERSION); # spent 170µs making 1 call to XSLoader::load |
25 | |||||
26 | sub import | ||||
27 | # spent 59µs within List::Util::import which was called 6 times, avg 10µs/call:
# once (17µs+0s) by DateTime::TimeZone::OlsonDB::Observance::BEGIN@16 at line 16 of DateTime/TimeZone/OlsonDB/Observance.pm
# once (11µs+0s) by Moose::Util::MetaRole::BEGIN@15 at line 15 of Moose/Util/MetaRole.pm
# once (8µs+0s) by DateTime::TimeZone::OlsonDB::Zone::BEGIN@17 at line 17 of DateTime/TimeZone/OlsonDB/Zone.pm
# once (8µs+0s) by Moose::Meta::TypeConstraint::Union::BEGIN@17 at line 17 of Moose/Meta/TypeConstraint/Union.pm
# once (8µs+0s) by Moose::Meta::Class::BEGIN@17 at line 17 of Moose/Meta/Class.pm
# once (7µs+0s) by Moose::Util::BEGIN@17 at line 17 of Moose/Util.pm | ||||
28 | 24 | 65µs | my $pkg = caller; | ||
29 | |||||
30 | # (RT88848) Touch the caller's $a and $b, to avoid the warning of | ||||
31 | # Name "main::a" used only once: possible typo" warning | ||||
32 | 2 | 65µs | 2 | 26µs | # spent 16µs (6+10) within List::Util::BEGIN@32 which was called:
# once (6µs+10µs) by Value::Convertor::BEGIN@53 at line 32 # spent 16µs making 1 call to List::Util::BEGIN@32
# spent 10µs making 1 call to strict::unimport |
33 | 12 | 9µs | ${"${pkg}::a"} = ${"${pkg}::a"}; | ||
34 | 12 | 3µs | ${"${pkg}::b"} = ${"${pkg}::b"}; | ||
35 | |||||
36 | 6 | 195µs | goto &Exporter::import; # spent 195µs making 6 calls to Exporter::import, avg 33µs/call | ||
37 | } | ||||
38 | |||||
39 | 1 | 7µs | 1; | ||
40 | |||||
41 | __END__ | ||||
# spent 322µs (136+186) within List::Util::first which was called 43 times, avg 7µs/call:
# 37 times (96µs+176µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 7µs/call
# 4 times (18µs+7µs) by Sub::Exporter::Progressive::__ANON__[/usr/local/share/perl/5.14.2/Sub/Exporter/Progressive.pm:40] at line 26 of Sub/Exporter/Progressive.pm, avg 6µs/call
# once (20µs+2µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm
# once (1µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm |