← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:45:24 2015

Filename/Users/ap13/perl5/lib/perl5/darwin-2level/List/Util.pm
StatementsExecuted 65 statements in 1.11ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
3611809µs966µsList::Util::::all List::Util::all (xsub)
1611533µs812µsList::Util::::any List::Util::any (xsub)
4622218µs218µsList::Util::::shuffle List::Util::shuffle (xsub)
5642199µs471µsList::Util::::first List::Util::first (xsub)
131313162µs162µsList::Util::::import List::Util::import
11120µs44µsList::Util::::BEGIN@9 List::Util::BEGIN@9
11112µs34µsList::Util::::BEGIN@30 List::Util::BEGIN@30
0000s0sList::Util::_Pair::::keyList::Util::_Pair::key
0000s0sList::Util::_Pair::::valueList::Util::_Pair::value
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
92158µs268µs
# spent 44µs (20+24) within List::Util::BEGIN@9 which was called: # once (20µs+24µs) by Moose::BEGIN@9 at line 9
use strict;
# spent 44µs making 1 call to List::Util::BEGIN@9 # spent 24µs making 1 call to strict::import
101500nsrequire Exporter;
11
12111µsour @ISA = qw(Exporter);
1316µ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);
171500nsour $VERSION = "1.41";
181500nsour $XS_VERSION = $VERSION;
19117µs$VERSION = eval $VERSION;
# spent 3µs executing statements in string eval
20
211400nsrequire XSLoader;
221524µs1510µsXSLoader::load('List::Util', $XS_VERSION);
# spent 510µs making 1 call to XSLoader::load
23
24sub import
25
# spent 162µs within List::Util::import which was called 13 times, avg 12µs/call: # once (17µs+0s) by Moose::Util::MetaRole::BEGIN@8 at line 8 of Moose/Util/MetaRole.pm # once (16µs+0s) by Class::MOP::Class::BEGIN@18 at line 18 of Class/MOP/Class.pm # once (15µs+0s) by Moose::Util::BEGIN@12 at line 12 of Moose/Util.pm # once (14µs+0s) by Graph::BEGIN@39 at line 39 of Graph.pm # once (12µs+0s) by Moose::Meta::Role::Application::RoleSummation::BEGIN@8 at line 8 of Moose/Meta/Role/Application/RoleSummation.pm # once (12µs+0s) by Moose::Meta::Class::BEGIN@9 at line 9 of Moose/Meta/Class.pm # once (12µs+0s) by Bio::Roary::Output::NumberOfGroups::BEGIN@18 at line 18 of lib/Bio/Roary/Output/NumberOfGroups.pm # once (11µs+0s) by Moose::Meta::Role::Application::BEGIN@9 at line 9 of Moose/Meta/Role/Application.pm # once (11µs+0s) by Moose::Meta::TypeConstraint::Union::BEGIN@10 at line 10 of Moose/Meta/TypeConstraint/Union.pm # once (11µs+0s) by Moose::Meta::Attribute::BEGIN@8 at line 8 of Moose/Meta/Attribute.pm # once (11µs+0s) by Moose::Meta::Role::Attribute::BEGIN@7 at line 7 of Moose/Meta/Role/Attribute.pm # once (10µs+0s) by Moose::Meta::Role::Application::ToInstance::BEGIN@9 at line 9 of Moose/Meta/Role/Application/ToInstance.pm # once (10µs+0s) by Moose::Meta::TypeConstraint::DuckType::BEGIN@10 at line 10 of Moose/Meta/TypeConstraint/DuckType.pm
{
2652211µs 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
302155µs257µs
# spent 34µs (12+22) within List::Util::BEGIN@30 which was called: # once (12µs+22µs) by Moose::BEGIN@9 at line 30
no strict 'refs';
# spent 34µs making 1 call to List::Util::BEGIN@30 # spent 22µs making 1 call to strict::unimport
31 ${"${pkg}::a"} = ${"${pkg}::a"};
32 ${"${pkg}::b"} = ${"${pkg}::b"};
33
3413495µs goto &Exporter::import;
# spent 495µs making 13 calls to Exporter::import, avg 38µs/call
35}
36
37# For objects returned by pairs()
38sub List::Util::_Pair::key { shift->[0] }
39sub List::Util::_Pair::value { shift->[1] }
40
41124µs1;
42
43__END__
 
# spent 966µs (809+158) within List::Util::all which was called 36 times, avg 27µs/call: # 36 times (809µs+158µs) by Class::MOP::Class::_check_metaclass_compatibility at line 211 of Class/MOP/Class.pm, avg 27µs/call
sub List::Util::all; # xsub
# spent 812µs (533+279) within List::Util::any which was called 16 times, avg 51µs/call: # 16 times (533µs+279µs) by Moose::Meta::Class::_eval_environment at line 542 of Moose/Meta/Class.pm, avg 51µs/call
sub List::Util::any; # xsub
# spent 471µs (199+272) within List::Util::first which was called 56 times, avg 8µs/call: # 52 times (168µs+263µs) by Data::OptList::__is_a at line 27 of Data/OptList.pm, avg 8µs/call # 2 times (14µs+5µs) by Sub::Exporter::Progressive::__ANON__[/Users/ap13/perl5/lib/perl5/Sub/Exporter/Progressive.pm:40] at line 26 of Sub/Exporter/Progressive.pm, avg 10µs/call # once (14µs+4µs) by Sub::Exporter::Progressive::sub_export_options at line 71 of Sub/Exporter/Progressive.pm # once (2µs+0s) by Sub::Exporter::Progressive::sub_export_options at line 66 of Sub/Exporter/Progressive.pm
sub List::Util::first; # xsub
# spent 218µs within List::Util::shuffle which was called 46 times, avg 5µs/call: # 36 times (187µs+0s) by Graph::_root_opt at line 2331 of Graph.pm, avg 5µs/call # 10 times (31µs+0s) by Bio::Roary::Output::NumberOfGroups::_shuffle_input_files at line 62 of lib/Bio/Roary/Output/NumberOfGroups.pm, avg 3µs/call
sub List::Util::shuffle; # xsub