| Filename | /usr/lib/perl5/5.14/i686-cygwin-threads-64int/Config.pm |
| Statements | Executed 31691 statements in 106ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 15818 | 10 | 4 | 75.1ms | 75.1ms | Config::FETCH |
| 1 | 1 | 1 | 4.82ms | 8.36ms | Config::BEGIN@11 |
| 1 | 1 | 1 | 1.92ms | 1.95ms | Config::BEGIN@9 |
| 5 | 5 | 5 | 212µs | 212µs | Config::import |
| 1 | 1 | 1 | 21µs | 64µs | Config::BEGIN@10 |
| 1 | 1 | 1 | 14µs | 37µs | Config::BEGIN@45 |
| 1 | 1 | 1 | 12µs | 12µs | Config::TIEHASH |
| 0 | 0 | 0 | 0s | 0s | Config::AUTOLOAD |
| 0 | 0 | 0 | 0s | 0s | Config::DESTROY |
| 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 | |||||
| 8 | package Config; | ||||
| 9 | 2 | 138µs | 2 | 1.97ms | # spent 1.95ms (1.92+27µs) within Config::BEGIN@9 which was called:
# once (1.92ms+27µs) by lib::BEGIN@6 at line 9 # spent 1.95ms making 1 call to Config::BEGIN@9
# spent 27µs making 1 call to strict::import |
| 10 | 2 | 81µs | 2 | 108µs | # spent 64µs (21+44) within Config::BEGIN@10 which was called:
# once (21µs+44µs) by lib::BEGIN@6 at line 10 # spent 64µs making 1 call to Config::BEGIN@10
# spent 44µs making 1 call to warnings::import |
| 11 | 2 | 4.44ms | 2 | 8.42ms | # spent 8.36ms (4.82+3.54) within Config::BEGIN@11 which was called:
# once (4.82ms+3.54ms) by lib::BEGIN@6 at line 11 # spent 8.36ms making 1 call to Config::BEGIN@11
# spent 59µ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. | ||||
| 16 | 1 | 5µs | my %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 | |||||
| 21 | 1 | 2µs | @Config::EXPORT = qw(%Config); | ||
| 22 | 1 | 6µ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 | |||||
| 27 | sub bincompat_options; | ||||
| 28 | sub compile_date; | ||||
| 29 | sub config_re; | ||||
| 30 | sub config_sh; | ||||
| 31 | sub config_vars; | ||||
| 32 | sub header_files; | ||||
| 33 | sub local_patches; | ||||
| 34 | sub myconfig; | ||||
| 35 | sub non_bincompat_options; | ||||
| 36 | |||||
| 37 | # Define our own import method to avoid pulling in the full Exporter: | ||||
| 38 | # spent 212µs within Config::import which was called 5 times, avg 42µs/call:
# once (114µs+0s) by lib::BEGIN@6 at line 6 of lib.pm
# once (34µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm
# once (23µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (22µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm
# once (19µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm | ||||
| 39 | 40 | 219µs | shift; | ||
| 40 | @_ = @Config::EXPORT unless @_; | ||||
| 41 | |||||
| 42 | my @funcs = grep $_ ne '%Config', @_; | ||||
| 43 | my $export_Config = @funcs < @_ ? 1 : 0; | ||||
| 44 | |||||
| 45 | 2 | 652µs | 2 | 60µs | # spent 37µs (14+23) within Config::BEGIN@45 which was called:
# once (14µs+23µs) by lib::BEGIN@6 at line 45 # spent 37µs making 1 call to Config::BEGIN@45
# spent 23µ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 | |||||
| 57 | 1 | 30µs | 1 | 15µs | die "Perl lib version (5.14.2) doesn't match executable '$0' version ($])" # spent 15µs making 1 call to version::(bool |
| 58 | unless $^V; | ||||
| 59 | |||||
| 60 | 1 | 23µs | 1 | 12µs | $^V eq 5.14.2 # spent 12µs making 1 call to version::(cmp |
| 61 | or die "Perl lib version (5.14.2) doesn't match executable '$0' version (" . | ||||
| 62 | sprintf("v%vd",$^V) . ")"; | ||||
| 63 | |||||
| 64 | |||||
| 65 | # spent 75.1ms within Config::FETCH which was called 15818 times, avg 5µs/call:
# 15806 times (75.0ms+0s) by File::Copy::copy at line 136 of File/Copy.pm, avg 5µs/call
# 3 times (24µs+0s) by installer::BEGIN@32 at line 40 of DynaLoader.pm, avg 8µs/call
# 2 times (13µs+0s) by File::Temp::BEGIN@148 at line 11 of Errno.pm, avg 7µs/call
# once (9µs+0s) by main::BEGIN@31 at line 10 of lib.pm
# once (5µs+0s) by main::BEGIN@31 at line 11 of lib.pm
# once (5µs+0s) by installer::BEGIN@32 at line 60 of DynaLoader.pm
# once (5µs+0s) by installer::BEGIN@32 at line 63 of DynaLoader.pm
# once (4µs+0s) by installer::BEGIN@32 at line 64 of DynaLoader.pm
# once (4µs+0s) by main::BEGIN@31 at line 12 of lib.pm
# once (4µs+0s) by installer::BEGIN@32 at line 65 of DynaLoader.pm | ||||
| 66 | 31636 | 100ms | 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 lib::BEGIN@6 at line 85 | ||||
| 73 | 1 | 15µs | bless $_[1], $_[0]; | ||
| 74 | } | ||||
| 75 | |||||
| 76 | sub DESTROY { } | ||||
| 77 | |||||
| 78 | sub 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. | ||||
| 85 | 1 | 212µs | 1 | 12µs | tie %Config, 'Config', { # spent 12µs making 1 call to Config::TIEHASH |
| 86 | archlibexp => '/usr/lib/perl5/5.14/i686-cygwin-threads-64int', | ||||
| 87 | archname => 'cygwin-thread-multi-64int', | ||||
| 88 | cc => 'gcc-4', | ||||
| 89 | d_readlink => 'define', | ||||
| 90 | d_symlink => 'define', | ||||
| 91 | dlext => 'dll', | ||||
| 92 | dlsrc => 'dl_dlopen.xs', | ||||
| 93 | dont_use_nlink => undef, | ||||
| 94 | exe_ext => '.exe', | ||||
| 95 | inc_version_list => ' ', | ||||
| 96 | intsize => '4', | ||||
| 97 | ldlibpthname => 'PATH', | ||||
| 98 | libpth => '/usr/local/lib /usr/lib /lib', | ||||
| 99 | osname => 'cygwin', | ||||
| 100 | osvers => '1.7.15(0.26053)', | ||||
| 101 | path_sep => ':', | ||||
| 102 | privlibexp => '/usr/lib/perl5/5.14', | ||||
| 103 | scriptdir => '/usr/bin', | ||||
| 104 | sitearchexp => '/usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int', | ||||
| 105 | sitelibexp => '/usr/lib/perl5/site_perl/5.14', | ||||
| 106 | so => 'dll', | ||||
| 107 | useithreads => 'define', | ||||
| 108 | usevendorprefix => 'define', | ||||
| 109 | version => '5.14.2', | ||||
| 110 | }; |