← 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/perlbrew/perls/perl-5.16.2/lib/5.16.2/vars.pm
StatementsExecuted 740 statements in 3.61ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4747372.13ms2.65msvars::::importvars::import
40831522µs522µsvars::::CORE:matchvars::CORE:match (opcode)
111398µs581µsvars::::BEGIN@7vars::BEGIN@7
11131µs31µsvars::::BEGIN@3vars::BEGIN@3
11114µs37µsvars::::BEGIN@8vars::BEGIN@8
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package vars;
2
32105µs131µs
# spent 31µs within vars::BEGIN@3 which was called: # once (31µs+0s) by base::BEGIN@4 at line 3
use 5.006;
# spent 31µs making 1 call to vars::BEGIN@3
4
51700nsour $VERSION = '1.02';
6
72432µs2764µs
# spent 581µs (398+183) within vars::BEGIN@7 which was called: # once (398µs+183µs) by base::BEGIN@4 at line 7
use warnings::register;
# spent 581µs making 1 call to vars::BEGIN@7 # spent 183µs making 1 call to warnings::register::import
82386µs260µs
# spent 37µs (14+23) within vars::BEGIN@8 which was called: # once (14µs+23µs) by base::BEGIN@4 at line 8
use strict qw(vars subs);
# spent 37µs making 1 call to vars::BEGIN@8 # spent 23µs making 1 call to strict::import
9
10
# spent 2.65ms (2.13+522µs) within vars::import which was called 47 times, avg 56µs/call: # once (160µs+36µs) by Bio::Tools::CodonTable::BEGIN@185 at line 186 of Bio/Tools/CodonTable.pm # once (104µs+19µs) by Getopt::Long::BEGIN@45 at line 45 of Getopt/Long.pm # once (94µs+21µs) by Getopt::Long::BEGIN@48 at line 49 of Getopt/Long.pm # once (92µs+23µs) by File::Grep::BEGIN@10 at line 10 of File/Grep.pm # once (81µs+18µs) by List::MoreUtils::BEGIN@8 at line 8 of List/MoreUtils.pm # once (73µs+19µs) by Heap071::Elem::BEGIN@4 at line 4 of Heap071/Elem.pm # once (70µs+20µs) by Heap071::Fibonacci::BEGIN@4 at line 4 of Heap071/Fibonacci.pm # once (71µs+16µs) by Bio::Tools::IUPAC::BEGIN@170 at line 170 of Bio/Tools/IUPAC.pm # once (68µs+18µs) by Bio::LocatableSeq::BEGIN@107 at line 107 of Bio/LocatableSeq.pm # once (68µs+13µs) by Graph::SPTHeapElem::BEGIN@4 at line 4 of Graph/SPTHeapElem.pm # once (60µs+17µs) by Storable::BEGIN@23 at line 23 of Storable.pm # once (60µs+12µs) by Getopt::Long::BEGIN@51 at line 51 of Getopt/Long.pm # once (53µs+17µs) by Graph::MSTHeapElem::BEGIN@4 at line 4 of Graph/MSTHeapElem.pm # once (55µs+14µs) by Clone::BEGIN@5 at line 5 of Clone.pm # once (48µs+21µs) by File::Spec::BEGIN@4 at line 4 of File/Spec.pm # once (55µs+13µs) by Text::Glob::BEGIN@4 at line 5 of Text/Glob.pm # once (53µs+11µs) by Getopt::Long::BEGIN@46 at line 46 of Getopt/Long.pm # once (50µs+13µs) by constant::BEGIN@6 at line 6 of constant.pm # once (46µs+12µs) by Params::Util::BEGIN@65 at line 65 of Params/Util.pm # once (45µs+12µs) by Cwd::BEGIN@172 at line 172 of Cwd.pm # once (45µs+11µs) by File::Temp::BEGIN@37 at line 37 of File/Temp.pm # once (45µs+11µs) by File::Path::BEGIN@19 at line 19 of File/Path.pm # once (43µs+10µs) by Bio::Root::RootI::BEGIN@84 at line 84 of Bio/Root/RootI.pm # once (41µs+10µs) by Graph::AdjacencyMap::BEGIN@6 at line 6 of Graph/AdjacencyMap.pm # once (37µs+12µs) by Bio::Tools::GFF::BEGIN@147 at line 147 of Bio/Tools/GFF.pm # once (32µs+12µs) by Config::BEGIN@11 at line 11 of Config.pm # once (30µs+12µs) by Graph::BEGIN@1733 at line 1733 of Graph.pm # once (36µs+5µs) by Bio::Factory::FTLocationFactory::BEGIN@92 at line 92 of Bio/Factory/FTLocationFactory.pm # once (33µs+8µs) by Error::subs::BEGIN@299 at line 299 of Error.pm # once (32µs+7µs) by Getopt::Long::BEGIN@26 at line 26 of Getopt/Long.pm # once (29µs+6µs) by Text::CSV::BEGIN@6 at line 6 of Text/CSV.pm # once (27µs+9µs) by base::BEGIN@4 at line 4 of base.pm # once (23µs+7µs) by Bio::SeqFeatureI::BEGIN@97 at line 97 of Bio/SeqFeatureI.pm # once (22µs+7µs) by Getopt::Long::BEGIN@19 at line 19 of Getopt/Long.pm # once (23µs+5µs) by Error::BEGIN@15 at line 15 of Error.pm # once (20µs+6µs) by Bio::RangeI::BEGIN@94 at line 94 of Bio/RangeI.pm # once (21µs+5µs) by parent::BEGIN@3 at line 3 of parent.pm # once (21µs+5µs) by Class::Data::Inheritable::BEGIN@4 at line 4 of Class/Data/Inheritable.pm # once (23µs+3µs) by File::Find::Rule::BEGIN@248 at line 248 of File/Find/Rule.pm # once (22µs+4µs) by B::Deparse::BEGIN@25 at line 25 of B/Deparse.pm # once (20µs+5µs) by File::Find::Rule::BEGIN@195 at line 195 of File/Find/Rule.pm # once (19µs+3µs) by Text::CSV_PP::BEGIN@11 at line 11 of Text/CSV_PP.pm # once (18µs+3µs) by Getopt::Long::BEGIN@22 at line 22 of Getopt/Long.pm # once (17µs+3µs) by Error::Simple::BEGIN@260 at line 260 of Error.pm # once (16µs+3µs) by Graph::BEGIN@15 at line 15 of Graph.pm # once (15µs+3µs) by File::Spec::Unix::BEGIN@4 at line 4 of File/Spec/Unix.pm # once (14µs+3µs) by Number::Compare::BEGIN@4 at line 4 of Number/Compare.pm
sub import {
117322.68ms my $callpack = caller;
12 my (undef, @imports) = @_;
13 my ($sym, $ch);
14 foreach (@imports) {
15136384µs if (($ch, $sym) = /^([\$\@\%\*\&])(.+)/) {
# spent 384µs making 136 calls to vars::CORE:match, avg 3µs/call
1613674µs if ($sym =~ /\W/) {
# spent 74µs making 136 calls to vars::CORE:match, avg 543ns/call
17 # time for a more-detailed check-up
18 if ($sym =~ /^\w+[[{].*[]}]$/) {
19 require Carp;
20 Carp::croak("Can't declare individual elements of hash or array");
21 } elsif (warnings::enabled() and length($sym) == 1 and $sym !~ tr/a-zA-Z//) {
22 warnings::warn("No need to declare built-in vars");
23 } elsif (($^H &= strict::bits('vars'))) {
24 require Carp;
25 Carp::croak("'$_' is not a valid variable name under strict vars");
26 }
27 }
2813665µs $sym = "${callpack}::$sym" unless $sym =~ /::/;
# spent 65µs making 136 calls to vars::CORE:match, avg 476ns/call
29 *$sym =
30 ( $ch eq "\$" ? \$$sym
31 : $ch eq "\@" ? \@$sym
32 : $ch eq "\%" ? \%$sym
33 : $ch eq "\*" ? \*$sym
34 : $ch eq "\&" ? \&$sym
35 : do {
36 require Carp;
37 Carp::croak("'$_' is not a valid variable name");
38 });
39 } else {
40 require Carp;
41 Carp::croak("'$_' is not a valid variable name");
42 }
43 }
44};
45
4614µs1;
47__END__
 
# spent 522µs within vars::CORE:match which was called 408 times, avg 1µs/call: # 136 times (384µs+0s) by vars::import at line 15, avg 3µs/call # 136 times (74µs+0s) by vars::import at line 16, avg 543ns/call # 136 times (65µs+0s) by vars::import at line 28, avg 476ns/call
sub vars::CORE:match; # opcode