Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/5.18.0/darwin-thread-multi-2level/List/Util.pm |
Statements | Executed 11 statements in 305µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
80 | 5 | 3 | 169µs | 392µs | first (xsub) | List::Util::
1 | 1 | 1 | 10µs | 20µs | BEGIN@11 | List::Util::
0 | 0 | 0 | 0s | 0s | sum0 | 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 | # This module is normally only loaded if the XS module is not available | ||||
8 | |||||
9 | package List::Util; | ||||
10 | |||||
11 | 2 | 100µs | 2 | 31µs | # spent 20µs (10+11) within List::Util::BEGIN@11 which was called:
# once (10µs+11µs) by Moose::BEGIN@13 at line 11 # spent 20µs making 1 call to List::Util::BEGIN@11
# spent 11µs making 1 call to strict::import |
12 | 1 | 300ns | require Exporter; | ||
13 | |||||
14 | 1 | 4µs | our @ISA = qw(Exporter); | ||
15 | 1 | 2µs | our @EXPORT_OK = qw(first min max minstr maxstr reduce sum sum0 shuffle); | ||
16 | 1 | 200ns | our $VERSION = "1.27"; | ||
17 | 1 | 100ns | our $XS_VERSION = $VERSION; | ||
18 | 1 | 10µs | $VERSION = eval $VERSION; # spent 2µs executing statements in string eval | ||
19 | |||||
20 | 1 | 200ns | require XSLoader; | ||
21 | 1 | 182µs | 1 | 177µs | XSLoader::load('List::Util', $XS_VERSION); # spent 177µs making 1 call to XSLoader::load |
22 | |||||
23 | sub sum0 | ||||
24 | { | ||||
25 | return 0 unless @_; | ||||
26 | goto ∑ | ||||
27 | } | ||||
28 | |||||
29 | 1 | 6µs | 1; | ||
30 | |||||
31 | __END__ | ||||
# spent 392µs (169+224) within List::Util::first which was called 80 times, avg 5µs/call:
# 53 times (115µs+211µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 6µs/call
# 13 times (4µs+0s) by namespace::autoclean::__ANON__[/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/namespace/autoclean.pm:57] at line 51 of namespace/autoclean.pm, avg 323ns/call
# 8 times (23µs+9µs) by Sub::Exporter::Progressive::__ANON__[/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/Sub/Exporter/Progressive.pm:40] at line 26 of Sub/Exporter/Progressive.pm, avg 4µs/call
# 3 times (24µs+3µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm, avg 9µs/call
# 3 times (3µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm, avg 967ns/call |