← 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:31 2015

Filename/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/darwin-2level/Config.pm
StatementsExecuted 61 statements in 1.16ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
33354µs54µsConfig::::importConfig::import
118446µs46µsConfig::::FETCHConfig::FETCH
11122µs54µsConfig::::BEGIN@9Config::BEGIN@9
11114µs23µsConfig::::BEGIN@10Config::BEGIN@10
11114µs32µsConfig::::BEGIN@45Config::BEGIN@45
11113µs56µsConfig::::BEGIN@11Config::BEGIN@11
11112µs12µsConfig::::TIEHASHConfig::TIEHASH
0000s0sConfig::::AUTOLOADConfig::AUTOLOAD
0000s0sConfig::::DESTROYConfig::DESTROY
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# This file was created by configpm when Perl was built. Any changes
2# made to this file will be lost the next time perl is built.
3
4# for a description of the variables, please have a look at the
5# Glossary file, as written in the Porting folder, or use the url:
6# http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/Glossary
7
8package Config;
9240µs287µs
# spent 54µs (22+33) within Config::BEGIN@9 which was called: # once (22µs+33µs) by DynaLoader::BEGIN@22 at line 9
use strict;
# spent 54µs making 1 call to Config::BEGIN@9 # spent 33µs making 1 call to strict::import
10238µs232µs
# spent 23µs (14+9) within Config::BEGIN@10 which was called: # once (14µs+9µs) by DynaLoader::BEGIN@22 at line 10
use warnings;
# spent 23µs making 1 call to Config::BEGIN@10 # spent 9µs making 1 call to warnings::import
112228µs2100µs
# spent 56µs (13+44) within Config::BEGIN@11 which was called: # once (13µs+44µs) by DynaLoader::BEGIN@22 at line 11
use vars '%Config';
# spent 56µs making 1 call to Config::BEGIN@11 # spent 44µs making 1 call to vars::import
12
13# Skip @Config::EXPORT because it only contains %Config, which we special
14# case below as it's not a function. @Config::EXPORT won't change in the
15# lifetime of Perl 5.
1616µsmy %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1,
17 config_re => 1, compile_date => 1, local_patches => 1,
18 bincompat_options => 1, non_bincompat_options => 1,
19 header_files => 1);
20
2112µs@Config::EXPORT = qw(%Config);
2215µs@Config::EXPORT_OK = keys %Export_Cache;
23
24# Need to stub all the functions to make code such as print Config::config_sh
25# keep working
26
27sub bincompat_options;
28sub compile_date;
29sub config_re;
30sub config_sh;
31sub config_vars;
32sub header_files;
33sub local_patches;
34sub myconfig;
35sub non_bincompat_options;
36
37# Define our own import method to avoid pulling in the full Exporter:
38
# spent 54µs within Config::import which was called 3 times, avg 18µs/call: # once (26µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm # once (14µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm # once (13µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
sub import {
392466µs shift;
40 @_ = @Config::EXPORT unless @_;
41
42 my @funcs = grep $_ ne '%Config', @_;
43 my $export_Config = @funcs < @_ ? 1 : 0;
44
452542µs251µs
# spent 32µs (14+19) within Config::BEGIN@45 which was called: # once (14µs+19µs) by DynaLoader::BEGIN@22 at line 45
no strict 'refs';
# spent 32µs making 1 call to Config::BEGIN@45 # spent 19µs making 1 call to strict::unimport
46 my $callpkg = caller(0);
47 foreach my $func (@funcs) {
48 die qq{"$func" is not exported by the Config module\n}
49 unless $Export_Cache{$func};
50 *{$callpkg.'::'.$func} = \&{$func};
51 }
52
53 *{"$callpkg\::Config"} = \%Config if $export_Config;
54 return;
55}
56
57133µs115µsdie "Perl lib version (5.16.2) doesn't match executable '$0' version ($])"
# spent 15µs making 1 call to version::(bool
58 unless $^V;
59
60126µs19µs$^V eq 5.16.2
# spent 9µs making 1 call to version::(cmp
61 or die "Perl lib version (5.16.2) doesn't match executable '$0' version (" .
62 sprintf("v%vd",$^V) . ")";
63
64
65
# spent 46µs within Config::FETCH which was called 11 times, avg 4µs/call: # 3 times (20µs+0s) by Data::OptList::BEGIN@10 at line 40 of DynaLoader.pm, avg 6µs/call # 2 times (6µs+0s) by File::Temp::BEGIN@17 at line 11 of Errno.pm, avg 3µs/call # once (4µs+0s) by File::Find::Rule::BEGIN@9 at line 1107 of File/Find.pm # once (4µs+0s) by File::Path::BEGIN@6 at line 394 of Cwd.pm # once (3µs+0s) by Data::OptList::BEGIN@10 at line 60 of DynaLoader.pm # once (3µs+0s) by Data::OptList::BEGIN@10 at line 63 of DynaLoader.pm # once (3µs+0s) by Data::OptList::BEGIN@10 at line 65 of DynaLoader.pm # once (3µs+0s) by Data::OptList::BEGIN@10 at line 64 of DynaLoader.pm
sub FETCH {
662282µs my($self, $key) = @_;
67
68 # check for cached value (which may be undef so we use exists not defined)
69 return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
70}
71
72
# spent 12µs within Config::TIEHASH which was called: # once (12µs+0s) by DynaLoader::BEGIN@22 at line 85
sub TIEHASH {
73116µs bless $_[1], $_[0];
74}
75
76sub DESTROY { }
77
78sub AUTOLOAD {
79 require 'Config_heavy.pl';
80 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
81 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
82}
83
84# tie returns the object, so the value returned to require will be true.
85176µs112µstie %Config, 'Config', {
# spent 12µs making 1 call to Config::TIEHASH
86 archlibexp => '/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/darwin-2level',
87 archname => 'darwin-2level',
88 cc => 'cc',
89 d_readlink => 'define',
90 d_symlink => 'define',
91 dlext => 'bundle',
92 dlsrc => 'dl_dlopen.xs',
93 dont_use_nlink => undef,
94 exe_ext => '',
95 inc_version_list => ' ',
96 intsize => '4',
97 ldlibpthname => 'DYLD_LIBRARY_PATH',
98 libpth => '/opt/local/lib /usr/lib',
99 osname => 'darwin',
100 osvers => '12.2.1',
101 path_sep => ':',
102 privlibexp => '/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2',
103 scriptdir => '/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/bin',
104 sitearchexp => '/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2/darwin-2level',
105 sitelibexp => '/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2',
106 so => 'dylib',
107 useithreads => undef,
108 usevendorprefix => undef,
109 version => '5.16.2',
110};