← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:47 2015

Filename/usr/lib/x86_64-linux-gnu/perl/5.20/List/Util.pm
StatementsExecuted 17 statements in 504µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
63127µs32µsList::Util::::firstList::Util::first (xsub)
11115µs30µsList::Util::::BEGIN@9List::Util::BEGIN@9
11111µs11µsList::Util::::importList::Util::import
1118µs19µsList::Util::::BEGIN@30List::Util::BEGIN@30
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# Copyright (c) 1997-2009 Graham Barr <gbarr@pobox.com>. All rights reserved.
2# This program is free software; you can redistribute it and/or
3# modify it under the same terms as Perl itself.
4#
5# Maintained since 2013 by Paul Evans <leonerd@leonerd.org.uk>
6
7package List::Util;
8
92132µs245µs
# spent 30µs (15+15) within List::Util::BEGIN@9 which was called: # once (15µs+15µs) by C4::Context::BEGIN@100 at line 9
use strict;
# spent 30µs making 1 call to List::Util::BEGIN@9 # spent 15µs making 1 call to strict::import
101600nsrequire Exporter;
11
12110µsour @ISA = qw(Exporter);
1312µsour @EXPORT_OK = qw(
14 all any first min max minstr maxstr none notall product reduce sum sum0 shuffle
15 pairmap pairgrep pairfirst pairs pairkeys pairvalues
16);
171300nsour $VERSION = "1.38";
181200nsour $XS_VERSION = $VERSION;
19115µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
20
211400nsrequire XSLoader;
221232µs1223µsXSLoader::load('List::Util', $XS_VERSION);
# spent 223µs making 1 call to XSLoader::load
23
24sub import
25
# spent 11µs within List::Util::import which was called: # once (11µs+0s) by MIME::Types::BEGIN@16 at line 16 of MIME/Types.pm
{
261800ns my $pkg = caller;
27
28 # (RT88848) Touch the caller's $a and $b, to avoid the warning of
29 # Name "main::a" used only once: possible typo" warning
30289µs230µs
# spent 19µs (8+11) within List::Util::BEGIN@30 which was called: # once (8µs+11µs) by C4::Context::BEGIN@100 at line 30
no strict 'refs';
# spent 19µs making 1 call to List::Util::BEGIN@30 # spent 11µs making 1 call to strict::unimport
3115µs ${"${pkg}::a"} = ${"${pkg}::a"};
3212µs ${"${pkg}::b"} = ${"${pkg}::b"};
33
3417µs158µs goto &Exporter::import;
# spent 58µs making 1 call to Exporter::import
35}
36
3718µs1;
38
39__END__
 
# spent 32µs (27+5) within List::Util::first which was called 6 times, avg 5µs/call: # 2 times (18µs+2µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm, avg 10µs/call # 2 times (8µs+3µs) by Sub::Exporter::Progressive::__ANON__[/usr/share/perl5/Sub/Exporter/Progressive.pm:40] at line 26 of Sub/Exporter/Progressive.pm, avg 6µs/call # 2 times (2µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm, avg 950ns/call
sub List::Util::first; # xsub