Filename | /usr/local/lib/perl/5.14.2/List/Util.pm |
Statements | Executed 61 statements in 937µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
43 | 4 | 2 | 126µs | 305µs | first (xsub) | List::Util::
6 | 6 | 6 | 83µs | 83µs | import | List::Util::
1 | 1 | 1 | 26µs | 33µs | BEGIN@11 | List::Util::
1 | 1 | 1 | 14µs | 37µ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 | 233µs | 2 | 41µs | # spent 33µs (26+8) within List::Util::BEGIN@11 which was called:
# once (26µs+8µs) by Value::Convertor::BEGIN@53 at line 11 # spent 33µs making 1 call to List::Util::BEGIN@11
# spent 7µs making 1 call to strict::import |
12 | 1 | 1µs | require Exporter; | ||
13 | |||||
14 | 1 | 12µs | our @ISA = qw(Exporter); | ||
15 | 1 | 6µ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 | 500ns | our $VERSION = "1.35"; | ||
20 | 1 | 400ns | our $XS_VERSION = $VERSION; | ||
21 | 1 | 29µs | $VERSION = eval $VERSION; # spent 5µs executing statements in string eval | ||
22 | |||||
23 | 1 | 700ns | require XSLoader; | ||
24 | 1 | 378µs | 1 | 362µs | XSLoader::load('List::Util', $XS_VERSION); # spent 362µs making 1 call to XSLoader::load |
25 | |||||
26 | sub import | ||||
27 | # spent 83µs within List::Util::import which was called 6 times, avg 14µs/call:
# once (31µs+0s) by DateTime::TimeZone::OlsonDB::Observance::BEGIN@16 at line 16 of DateTime/TimeZone/OlsonDB/Observance.pm
# once (20µs+0s) by DateTime::TimeZone::OlsonDB::Zone::BEGIN@17 at line 17 of DateTime/TimeZone/OlsonDB/Zone.pm
# once (9µs+0s) by Moose::Util::MetaRole::BEGIN@15 at line 15 of Moose/Util/MetaRole.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 | 91µ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 | 150µs | 2 | 60µs | # spent 37µs (14+23) within List::Util::BEGIN@32 which was called:
# once (14µs+23µs) by Value::Convertor::BEGIN@53 at line 32 # spent 37µs making 1 call to List::Util::BEGIN@32
# spent 23µs making 1 call to strict::unimport |
33 | 12 | 10µs | ${"${pkg}::a"} = ${"${pkg}::a"}; | ||
34 | 12 | 8µs | ${"${pkg}::b"} = ${"${pkg}::b"}; | ||
35 | |||||
36 | 6 | 287µs | goto &Exporter::import; # spent 287µs making 6 calls to Exporter::import, avg 48µs/call | ||
37 | } | ||||
38 | |||||
39 | 1 | 17µs | 1; | ||
40 | |||||
41 | __END__ | ||||
# spent 305µs (126+179) within List::Util::first which was called 43 times, avg 7µs/call:
# 37 times (91µs+170µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 7µs/call
# 4 times (17µ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 (15µs+2µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm
# once (2µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm |