← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:45:08 2010
Reported on Wed Nov 17 22:13:09 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/5.10.1/x86_64-linux/List/Util.pm
StatementsExecuted 20 statements in 1.52ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
16013327.5ms67.5msList::Util::::firstList::Util::first (xsub)
11175µs94µsList::Util::::BEGIN@11List::Util::BEGIN@11
11134µs426µsList::Util::::BEGIN@12List::Util::BEGIN@12
Call graph for these subroutines as a Graphviz dot language file.
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
9package List::Util;
10
113122µs2112µs
# spent 94µs (75+19) within List::Util::BEGIN@11 which was called: # once (75µs+19µs) by Class::MOP::BEGIN@12 at line 11
use strict;
# spent 94µs making 1 call to List::Util::BEGIN@11 # spent 18µs making 1 call to strict::import
123519µs2817µs
# spent 426µs (34+391) within List::Util::BEGIN@12 which was called: # once (34µs+391µs) by Class::MOP::BEGIN@12 at line 12
use vars qw(@ISA @EXPORT_OK $VERSION $XS_VERSION $TESTING_PERL_ONLY);
# spent 426µs making 1 call to List::Util::BEGIN@12 # spent 391µs making 1 call to vars::import
1313µsrequire Exporter;
14
15127µs@ISA = qw(Exporter);
1618µs@EXPORT_OK = qw(first min max minstr maxstr reduce sum shuffle);
1712µs$VERSION = "1.21";
1812µs$XS_VERSION = $VERSION;
19160µs$VERSION = eval $VERSION;
# spent 11µs executing statements in string eval
20
2115µseval {
22 # PERL_DL_NONLAZY must be false, or any errors in loading will just
23 # cause the perl code to be tested
2414µs local $ENV{PERL_DL_NONLAZY} = 0 if $ENV{PERL_DL_NONLAZY};
25 eval {
2613µs require XSLoader;
271713µs1687µs XSLoader::load('List::Util', $XS_VERSION);
# spent 687µs making 1 call to XSLoader::load
2814µs 1;
2914µs } or do {
30 require DynaLoader;
31 local @ISA = qw(DynaLoader);
32 bootstrap List::Util $XS_VERSION;
33 };
34} unless $TESTING_PERL_ONLY;
35
36
3714µsif (!defined &sum) {
38 require List::Util::PP;
39 List::Util::PP->import;
40}
41
42141µs1;
43
44__END__
 
# spent 67.5ms (27.5+40.0) within List::Util::first which was called 1601 times, avg 42µs/call: # 1390 times (26.1ms+40.0ms) by Data::OptList::__is_a at line 143 of Data/OptList.pm, avg 48µs/call # 169 times (816µs+0s) by namespace::autoclean::__ANON__[/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/namespace/autoclean.pm:57] at line 51 of namespace/autoclean.pm, avg 5µs/call # 42 times (608µs+0s) by Moose::Util::MetaRole::_make_new_metaclass at line 117 of Moose/Util/MetaRole.pm, avg 14µs/call
sub List::Util::first; # xsub