| Filename | /home/ss5/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/x86_64-linux-thread-multi/List/Util.pm |
| Statements | Executed 11 statements in 1.44ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 7 | 1 | 1 | 152µs | 403µs | List::Util::first (xsub) |
| 1 | 1 | 1 | 60µs | 74µs | List::Util::BEGIN@11 |
| 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 | 347µs | 2 | 87µs | # spent 74µs (60+13) within List::Util::BEGIN@11 which was called:
# once (60µs+13µs) by Data::DPath::Context::BEGIN@17 at line 11 # spent 74µs making 1 call to List::Util::BEGIN@11
# spent 14µs making 1 call to strict::import |
| 12 | 1 | 1µs | require Exporter; | ||
| 13 | |||||
| 14 | 1 | 26µs | our @ISA = qw(Exporter); | ||
| 15 | 1 | 10µs | our @EXPORT_OK = qw(first min max minstr maxstr reduce sum shuffle); | ||
| 16 | 1 | 2µs | our $VERSION = "1.25"; | ||
| 17 | 1 | 1µs | our $XS_VERSION = $VERSION; | ||
| 18 | 1 | 58µs | $VERSION = eval $VERSION; # spent 9µs executing statements in string eval | ||
| 19 | |||||
| 20 | 1 | 2µs | require XSLoader; | ||
| 21 | 1 | 961µs | 1 | 927µs | XSLoader::load('List::Util', $XS_VERSION); # spent 927µs making 1 call to XSLoader::load |
| 22 | |||||
| 23 | 1 | 34µs | 1; | ||
| 24 | |||||
| 25 | __END__ | ||||
# spent 403µs (152+251) within List::Util::first which was called 7 times, avg 58µs/call:
# 7 times (152µs+251µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 58µs/call |