← Index
NYTProf Performance Profile   « line view »
For examples/Atom-timer.pl
  Run on Mon Aug 12 14:45:28 2013
Reported on Mon Aug 12 14:46:14 2013

Filename/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/5.18.0/darwin-thread-multi-2level/List/Util.pm
StatementsExecuted 11 statements in 305µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
8053169µs392µsList::Util::::firstList::Util::first (xsub)
11110µs20µsList::Util::::BEGIN@11List::Util::BEGIN@11
0000s0sList::Util::::sum0List::Util::sum0
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
112100µs231µ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
use strict;
# spent 20µs making 1 call to List::Util::BEGIN@11 # spent 11µs making 1 call to strict::import
121300nsrequire Exporter;
13
1414µsour @ISA = qw(Exporter);
1512µsour @EXPORT_OK = qw(first min max minstr maxstr reduce sum sum0 shuffle);
161200nsour $VERSION = "1.27";
171100nsour $XS_VERSION = $VERSION;
18110µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
19
201200nsrequire XSLoader;
211182µs1177µsXSLoader::load('List::Util', $XS_VERSION);
# spent 177µs making 1 call to XSLoader::load
22
23sub sum0
24{
25 return 0 unless @_;
26 goto &sum;
27}
28
2916µs1;
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
sub List::Util::first; # xsub