← Index
NYTProf Performance Profile   « line view »
For rbm/rbm
  Run on Wed Feb 12 20:36:06 2020
Reported on Wed Feb 12 21:42:25 2020

Filename/usr/lib/x86_64-linux-gnu/perl/5.28/List/Util.pm
StatementsExecuted 15 statements in 579µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11111µs13µsList::Util::::BEGIN@9 List::Util::BEGIN@9
1117µs20µsList::Util::::BEGIN@31 List::Util::BEGIN@31
1117µs19µsList::Util::::BEGIN@10 List::Util::BEGIN@10
0000s0sList::Util::_Pair::::keyList::Util::_Pair::key
0000s0sList::Util::_Pair::::valueList::Util::_Pair::value
0000s0sList::Util::::import List::Util::import
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
9296µs215µs
# spent 13µs (11+2) within List::Util::BEGIN@9 which was called: # once (11µs+2µs) by YAML::XS::BEGIN@21 at line 9
use strict;
# spent 13µs making 1 call to List::Util::BEGIN@9 # spent 2µs making 1 call to strict::import
102135µs232µs
# spent 19µs (7+12) within List::Util::BEGIN@10 which was called: # once (7µs+12µs) by YAML::XS::BEGIN@21 at line 10
use warnings;
# spent 19µs making 1 call to List::Util::BEGIN@10 # spent 12µs making 1 call to warnings::import
111400nsrequire Exporter;
12
1315µsour @ISA = qw(Exporter);
1412µsour @EXPORT_OK = qw(
15 all any first min max minstr maxstr none notall product reduce sum sum0 shuffle uniq uniqnum uniqstr
16 head tail pairs unpairs pairkeys pairvalues pairmap pairgrep pairfirst
17);
181200nsour $VERSION = "1.50";
191100nsour $XS_VERSION = $VERSION;
20116µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
21
221200nsrequire XSLoader;
231174µs1168µsXSLoader::load('List::Util', $XS_VERSION);
# spent 168µs making 1 call to XSLoader::load
24
25sub import
26{
27 my $pkg = caller;
28
29 # (RT88848) Touch the caller's $a and $b, to avoid the warning of
30 # Name "main::a" used only once: possible typo" warning
312143µs232µs
# spent 20µs (7+12) within List::Util::BEGIN@31 which was called: # once (7µs+12µs) by YAML::XS::BEGIN@21 at line 31
no strict 'refs';
# spent 20µs making 1 call to List::Util::BEGIN@31 # spent 12µs making 1 call to strict::unimport
32 ${"${pkg}::a"} = ${"${pkg}::a"};
33 ${"${pkg}::b"} = ${"${pkg}::b"};
34
35 goto &Exporter::import;
36}
37
38# For objects returned by pairs()
39sub List::Util::_Pair::key { shift->[0] }
40sub List::Util::_Pair::value { shift->[1] }
41
4218µs1;