← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/hailo
  Run on Thu Oct 21 22:50:37 2010
Reported on Thu Oct 21 22:52:12 2010

Filename/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/5.13.5/x86_64-linux/List/Util.pm
StatementsExecuted 18 statements in 531µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1022183µs387µsList::Util::::firstList::Util::first (xsub)
11127µs32µsList::Util::::BEGIN@11List::Util::BEGIN@11
11111µs133µsList::Util::::BEGIN@12List::Util::BEGIN@12
2115µs5µsList::Util::::maxList::Util::max (xsub)
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
11264µs237µs
# spent 32µs (27+5) within List::Util::BEGIN@11 which was called: # once (27µs+5µs) by Mouse::Util::BEGIN@81 at line 11
use strict;
# spent 32µs making 1 call to List::Util::BEGIN@11 # spent 5µs making 1 call to strict::import
122147µs2255µs
# spent 133µs (11+122) within List::Util::BEGIN@12 which was called: # once (11µs+122µs) by Mouse::Util::BEGIN@81 at line 12
use vars qw(@ISA @EXPORT_OK $VERSION $XS_VERSION $TESTING_PERL_ONLY);
# spent 133µs making 1 call to List::Util::BEGIN@12 # spent 122µs making 1 call to vars::import
1311µsrequire Exporter;
14
1518µs@ISA = qw(Exporter);
1612µs@EXPORT_OK = qw(first min max minstr maxstr reduce sum shuffle);
1711µs$VERSION = "1.23";
1811µs$XS_VERSION = $VERSION;
19125µs$VERSION = eval $VERSION;
# spent 3µs executing statements in string eval
20
2112µseval {
22 # PERL_DL_NONLAZY must be false, or any errors in loading will just
23 # cause the perl code to be tested
2412µs local $ENV{PERL_DL_NONLAZY} = 0 if $ENV{PERL_DL_NONLAZY};
25 eval {
2612µs require XSLoader;
271259µs1252µs XSLoader::load('List::Util', $XS_VERSION);
# spent 252µs making 1 call to XSLoader::load
2812µs 1;
2912µ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
3711µsif (!defined &sum) {
38 require List::Util::PP;
39 List::Util::PP->import;
40}
41
42111µs1;
43
44__END__
 
# spent 387µs (183+204) within List::Util::first which was called 10 times, avg 39µs/call: # 7 times (89µs+126µs) by Data::OptList::__is_a at line 143 of Data/OptList.pm, avg 31µs/call # 3 times (94µs+78µs) by Hailo::_new_class at line 183 of lib/Hailo.pm, avg 57µs/call
sub List::Util::first; # xsub
# spent 5µs within List::Util::max which was called 2 times, avg 3µs/call: # 2 times (5µs+0s) by Getopt::Long::Descriptive::Usage::option_text at line 88 of Getopt/Long/Descriptive/Usage.pm, avg 3µs/call
sub List::Util::max; # xsub