← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Sun Aug 5 15:24:32 2012
Reported on Sun Aug 5 15:24:47 2012

Filename/usr/lib/perl5/vendor_perl/5.12.4/i686-linux/List/Util.pm
StatementsExecuted 20 statements in 2.00ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11192µs119µsList::Util::::BEGIN@11List::Util::BEGIN@11
11147µs564µ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
113154µs2145µs
# spent 119µs (92+26) within List::Util::BEGIN@11 which was called: # once (92µs+26µs) by DateTime::Helpers::BEGIN@9 at line 11
use strict;
# spent 119µs making 1 call to List::Util::BEGIN@11 # spent 26µs making 1 call to strict::import
123769µs21.08ms
# spent 564µs (47+518) within List::Util::BEGIN@12 which was called: # once (47µs+518µs) by DateTime::Helpers::BEGIN@9 at line 12
use vars qw(@ISA @EXPORT_OK $VERSION $XS_VERSION $TESTING_PERL_ONLY);
# spent 564µs making 1 call to List::Util::BEGIN@12 # spent 518µs making 1 call to vars::import
1314µsrequire Exporter;
14
15167µs@ISA = qw(Exporter);
16111µs@EXPORT_OK = qw(first min max minstr maxstr reduce sum shuffle);
1714µs$VERSION = "1.23";
1814µs$XS_VERSION = $VERSION;
19178µs$VERSION = eval $VERSION;
# spent 15µs executing statements in string eval
20
2117µseval {
22 # PERL_DL_NONLAZY must be false, or any errors in loading will just
23 # cause the perl code to be tested
2415µs local $ENV{PERL_DL_NONLAZY} = 0 if $ENV{PERL_DL_NONLAZY};
25 eval {
2615µs require XSLoader;
271826µs1791µs XSLoader::load('List::Util', $XS_VERSION);
# spent 791µs making 1 call to XSLoader::load
2816µs 1;
2916µ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
42154µs1;
43
44__END__