| Filename | /usr/lib/x86_64-linux-gnu/perl-base/Config.pm |
| Statements | Executed 2624 statements in 4.37ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 1.50ms | 1.53ms | Config::AUTOLOAD |
| 1288 | 11 | 5 | 1.38ms | 21.3ms | Config::FETCH |
| 4 | 4 | 4 | 26µs | 26µs | Config::import |
| 1 | 1 | 1 | 7µs | 8µs | Config::BEGIN@9 |
| 1 | 1 | 1 | 4µs | 8µs | Config::BEGIN@47 |
| 1 | 1 | 1 | 3µs | 17µs | Config::BEGIN@10 |
| 1 | 1 | 1 | 900ns | 900ns | Config::TIEHASH |
| 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 | # https://github.com/Perl/perl5/blob/blead/Porting/Glossary | ||||
| 7 | |||||
| 8 | package Config; | ||||
| 9 | 2 | 17µs | 2 | 9µs | # spent 8µs (7+1) within Config::BEGIN@9 which was called:
# once (7µs+1µs) by diagnostics::BEGIN@196 at line 9 # spent 8µs making 1 call to Config::BEGIN@9
# spent 1µs making 1 call to strict::import |
| 10 | 2 | 89µs | 2 | 30µs | # spent 17µs (3+13) within Config::BEGIN@10 which was called:
# once (3µs+13µs) by diagnostics::BEGIN@196 at line 10 # spent 17µs making 1 call to Config::BEGIN@10
# spent 13µs making 1 call to warnings::import |
| 11 | our ( %Config, $VERSION ); | ||||
| 12 | |||||
| 13 | 1 | 200ns | $VERSION = "5.036000"; | ||
| 14 | |||||
| 15 | # Skip @Config::EXPORT because it only contains %Config, which we special | ||||
| 16 | # case below as it's not a function. @Config::EXPORT won't change in the | ||||
| 17 | # lifetime of Perl 5. | ||||
| 18 | 1 | 2µs | my %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1, | ||
| 19 | config_re => 1, compile_date => 1, local_patches => 1, | ||||
| 20 | bincompat_options => 1, non_bincompat_options => 1, | ||||
| 21 | header_files => 1); | ||||
| 22 | |||||
| 23 | 1 | 400ns | @Config::EXPORT = qw(%Config); | ||
| 24 | 1 | 1µs | @Config::EXPORT_OK = keys %Export_Cache; | ||
| 25 | |||||
| 26 | # Need to stub all the functions to make code such as print Config::config_sh | ||||
| 27 | # keep working | ||||
| 28 | |||||
| 29 | sub bincompat_options; | ||||
| 30 | sub compile_date; | ||||
| 31 | sub config_re; | ||||
| 32 | sub config_sh; | ||||
| 33 | sub config_vars; | ||||
| 34 | sub header_files; | ||||
| 35 | sub local_patches; | ||||
| 36 | sub myconfig; | ||||
| 37 | sub non_bincompat_options; | ||||
| 38 | |||||
| 39 | # Define our own import method to avoid pulling in the full Exporter: | ||||
| 40 | # spent 26µs within Config::import which was called 4 times, avg 6µs/call:
# once (7µs+0s) by DynaLoader::BEGIN@31 at line 31 of DynaLoader.pm
# once (7µs+0s) by lib::BEGIN@6 at line 6 of lib.pm
# once (6µs+0s) by diagnostics::BEGIN@196 at line 196 of diagnostics.pm
# once (6µs+0s) by Pod::Usage::BEGIN@17 at line 17 of Pod/Usage.pm | ||||
| 41 | 4 | 700ns | shift; | ||
| 42 | 4 | 4µs | @_ = @Config::EXPORT unless @_; | ||
| 43 | |||||
| 44 | 4 | 5µs | my @funcs = grep $_ ne '%Config', @_; | ||
| 45 | 4 | 2µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
| 46 | |||||
| 47 | 2 | 226µs | 2 | 11µs | # spent 8µs (4+3) within Config::BEGIN@47 which was called:
# once (4µs+3µs) by diagnostics::BEGIN@196 at line 47 # spent 8µs making 1 call to Config::BEGIN@47
# spent 3µs making 1 call to strict::unimport |
| 48 | 4 | 2µs | my $callpkg = caller(0); | ||
| 49 | 4 | 2µs | foreach my $func (@funcs) { | ||
| 50 | die qq{"$func" is not exported by the Config module\n} | ||||
| 51 | unless $Export_Cache{$func}; | ||||
| 52 | *{$callpkg.'::'.$func} = \&{$func}; | ||||
| 53 | } | ||||
| 54 | |||||
| 55 | 4 | 7µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
| 56 | 4 | 9µs | return; | ||
| 57 | } | ||||
| 58 | |||||
| 59 | 1 | 18µs | 1 | 3µs | die "$0: Perl lib version (5.36.0) doesn't match executable '$^X' version ($])" # spent 3µs making 1 call to version::(bool |
| 60 | unless $^V; | ||||
| 61 | |||||
| 62 | 1 | 4µs | 1 | 2µs | $^V eq 5.36.0 # spent 2µs making 1 call to version::(cmp |
| 63 | or die sprintf "%s: Perl lib version (5.36.0) doesn't match executable '$^X' version (%vd)", $0, $^V; | ||||
| 64 | |||||
| 65 | # spent 21.3ms (1.38+19.9) within Config::FETCH which was called 1288 times, avg 17µs/call:
# 1276 times (1.36ms+19.9ms) by ExtUtils::MakeMaker::BEGIN@10 at line 12 of ExtUtils/MakeMaker/Config.pm, avg 17µs/call
# 3 times (4µs+0s) by Contextual::Return::BEGIN@361 at line 50 of DynaLoader.pm, avg 1µs/call
# once (3µs+0s) by main::BEGIN@8 at line 198 of diagnostics.pm
# once (3µs+0s) by main::BEGIN@35 at line 10 of lib.pm
# once (2µs+0s) by main::BEGIN@14 at line 217 of Cwd.pm
# once (900ns+0s) by main::BEGIN@35 at line 11 of lib.pm
# once (700ns+0s) by Contextual::Return::BEGIN@361 at line 73 of DynaLoader.pm
# once (700ns+0s) by Contextual::Return::BEGIN@361 at line 71 of DynaLoader.pm
# once (700ns+0s) by main::BEGIN@35 at line 12 of lib.pm
# once (600ns+0s) by Contextual::Return::BEGIN@361 at line 69 of DynaLoader.pm
# once (400ns+0s) by Contextual::Return::BEGIN@361 at line 72 of DynaLoader.pm | ||||
| 66 | 1288 | 186µs | my($self, $key) = @_; | ||
| 67 | |||||
| 68 | # check for cached value (which may be undef so we use exists not defined) | ||||
| 69 | 1288 | 3.72ms | 1253 | 19.9ms | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); # spent 19.9ms making 1253 calls to Config::fetch_string, avg 16µs/call |
| 70 | } | ||||
| 71 | |||||
| 72 | # spent 900ns within Config::TIEHASH which was called:
# once (900ns+0s) by diagnostics::BEGIN@196 at line 85 | ||||
| 73 | 1 | 2µs | bless $_[1], $_[0]; | ||
| 74 | } | ||||
| 75 | |||||
| 76 | sub DESTROY { } | ||||
| 77 | |||||
| 78 | # spent 1.53ms (1.50+33µs) within Config::AUTOLOAD which was called:
# once (1.50ms+33µs) by ExtUtils::MakeMaker::BEGIN@10 at line 12 of ExtUtils/MakeMaker/Config.pm | ||||
| 79 | 1 | 53µs | require 'Config_heavy.pl'; | ||
| 80 | 1 | 7µs | 2 | 5µs | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; # spent 5µs making 1 call to Config::launcher
# spent 600ns making 1 call to Config::CORE:match |
| 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 | 16µs | 1 | 900ns | tie %Config, 'Config', { # spent 900ns making 1 call to Config::TIEHASH |
| 86 | archlibexp => '/usr/lib/x86_64-linux-gnu/perl/5.36', | ||||
| 87 | archname => 'x86_64-linux-gnu-thread-multi', | ||||
| 88 | cc => 'x86_64-linux-gnu-gcc', | ||||
| 89 | d_readlink => 'define', | ||||
| 90 | d_symlink => 'define', | ||||
| 91 | dlext => 'so', | ||||
| 92 | dlsrc => 'dl_dlopen.xs', | ||||
| 93 | dont_use_nlink => undef, | ||||
| 94 | exe_ext => '', | ||||
| 95 | inc_version_list => '', | ||||
| 96 | intsize => '4', | ||||
| 97 | ldlibpthname => 'LD_LIBRARY_PATH', | ||||
| 98 | libpth => '/usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib', | ||||
| 99 | osname => 'linux', | ||||
| 100 | osvers => '4.19.0', | ||||
| 101 | path_sep => ':', | ||||
| 102 | privlibexp => '/usr/share/perl/5.36', | ||||
| 103 | scriptdir => '/usr/bin', | ||||
| 104 | sitearchexp => '/usr/local/lib/x86_64-linux-gnu/perl/5.36.0', | ||||
| 105 | sitelibexp => '/usr/local/share/perl/5.36.0', | ||||
| 106 | so => 'so', | ||||
| 107 | useithreads => 'define', | ||||
| 108 | usevendorprefix => 'define', | ||||
| 109 | version => '5.36.0', | ||||
| 110 | }; |