Filename | /opt/perl-5.18.1/lib/site_perl/5.18.1/darwin-thread-multi-2level/List/Util.pm |
Statements | Executed 29 statements in 647µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
43 | 4 | 2 | 172µs | 409µs | first (xsub) | List::Util::
4 | 4 | 4 | 40µs | 40µs | import | List::Util::
1 | 1 | 1 | 20µs | 37µs | BEGIN@11 | List::Util::
1 | 1 | 1 | 13µs | 27µ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 | 131µs | 2 | 53µs | # spent 37µs (20+17) within List::Util::BEGIN@11 which was called:
# once (20µs+17µs) by Mouse::Util::BEGIN@136 at line 11 # spent 37µs making 1 call to List::Util::BEGIN@11
# spent 17µs making 1 call to strict::import |
12 | 1 | 400ns | require Exporter; | ||
13 | |||||
14 | 1 | 8µs | our @ISA = qw(Exporter); | ||
15 | 1 | 4µ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 | 400ns | our $VERSION = "1.35"; | ||
20 | 1 | 200ns | our $XS_VERSION = $VERSION; | ||
21 | 1 | 14µs | $VERSION = eval $VERSION; # spent 3µs executing statements in string eval | ||
22 | |||||
23 | 1 | 300ns | require XSLoader; | ||
24 | 1 | 305µs | 1 | 296µs | XSLoader::load('List::Util', $XS_VERSION); # spent 296µs making 1 call to XSLoader::load |
25 | |||||
26 | sub import | ||||
27 | # spent 40µs within List::Util::import which was called 4 times, avg 10µs/call:
# once (14µs+0s) by Moose::Meta::TypeConstraint::Union::BEGIN@17 at line 17 of Moose/Meta/TypeConstraint/Union.pm
# once (11µs+0s) by Moose::Util::MetaRole::BEGIN@15 at line 15 of Moose/Util/MetaRole.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 | 4 | 3µ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 | 104µs | 2 | 41µs | # spent 27µs (13+14) within List::Util::BEGIN@32 which was called:
# once (13µs+14µs) by Mouse::Util::BEGIN@136 at line 32 # spent 27µs making 1 call to List::Util::BEGIN@32
# spent 14µs making 1 call to strict::unimport |
33 | 4 | 15µs | ${"${pkg}::a"} = ${"${pkg}::a"}; | ||
34 | 4 | 11µs | ${"${pkg}::b"} = ${"${pkg}::b"}; | ||
35 | |||||
36 | 4 | 35µs | 4 | 144µs | goto &Exporter::import; # spent 144µs making 4 calls to Exporter::import, avg 36µs/call |
37 | } | ||||
38 | |||||
39 | 1 | 15µs | 1; | ||
40 | |||||
41 | __END__ | ||||
# spent 409µs (172+237) within List::Util::first which was called 43 times, avg 10µs/call:
# 37 times (124µs+226µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 9µs/call
# 4 times (22µs+8µs) by Sub::Exporter::Progressive::__ANON__[/opt/perl-5.18.1/lib/site_perl/5.18.1/Sub/Exporter/Progressive.pm:40] at line 26 of Sub/Exporter/Progressive.pm, avg 8µs/call
# once (19µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm
# once (7µs+3µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm |