| Filename | /usr/lib/x86_64-linux-gnu/perl/5.28/Config.pm |
| Statements | Executed 104 statements in 1.08ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 2.39ms | 2.49ms | Config::AUTOLOAD |
| 24 | 11 | 5 | 140µs | 2.67ms | Config::FETCH |
| 5 | 5 | 5 | 65µs | 65µs | Config::import |
| 2 | 1 | 1 | 25µs | 25µs | Config::CORE:substcont (opcode) |
| 1 | 1 | 1 | 12µs | 15µs | Config::BEGIN@9 |
| 2 | 2 | 2 | 11µs | 11µs | Config::CORE:match (opcode) |
| 1 | 1 | 1 | 9µs | 9µs | Config::CORE:regcomp (opcode) |
| 1 | 1 | 1 | 8µs | 8µs | Config::CORE:subst (opcode) |
| 1 | 1 | 1 | 7µs | 18µs | Config::BEGIN@47 |
| 1 | 1 | 1 | 5µs | 5µs | Config::CORE:pack (opcode) |
| 1 | 1 | 1 | 4µs | 20µs | Config::BEGIN@10 |
| 1 | 1 | 1 | 3µs | 3µs | Config::CORE:unpack (opcode) |
| 1 | 1 | 1 | 1µs | 1µs | 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 | # http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/Glossary | ||||
| 7 | |||||
| 8 | package Config; | ||||
| 9 | 2 | 20µs | 2 | 17µs | # spent 15µs (12+3) within Config::BEGIN@9 which was called:
# once (12µs+3µs) by lib::BEGIN@6 at line 9 # spent 15µs making 1 call to Config::BEGIN@9
# spent 3µs making 1 call to strict::import |
| 10 | 2 | 137µs | 2 | 36µs | # spent 20µs (4+16) within Config::BEGIN@10 which was called:
# once (4µs+16µs) by lib::BEGIN@6 at line 10 # spent 20µs making 1 call to Config::BEGIN@10
# spent 16µs making 1 call to warnings::import |
| 11 | our ( %Config, $VERSION ); | ||||
| 12 | |||||
| 13 | 1 | 300ns | $VERSION = "5.028001"; | ||
| 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 | 3µ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 | 500ns | @Config::EXPORT = qw(%Config); | ||
| 24 | 1 | 2µ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 65µs within Config::import which was called 5 times, avg 13µs/call:
# once (19µs+0s) by DynaLoader::BEGIN@21 at line 21 of DynaLoader.pm
# once (15µs+0s) by locale::BEGIN@4 at line 4 of locale.pm
# once (15µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (9µs+0s) by Path::Tiny::BEGIN@11 at line 11 of Path/Tiny.pm
# once (8µs+0s) by lib::BEGIN@6 at line 6 of lib.pm | ||||
| 41 | 5 | 1µs | shift; | ||
| 42 | 5 | 10µs | @_ = @Config::EXPORT unless @_; | ||
| 43 | |||||
| 44 | 5 | 9µs | my @funcs = grep $_ ne '%Config', @_; | ||
| 45 | 5 | 5µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
| 46 | |||||
| 47 | 2 | 338µs | 2 | 29µs | # spent 18µs (7+11) within Config::BEGIN@47 which was called:
# once (7µs+11µs) by lib::BEGIN@6 at line 47 # spent 18µs making 1 call to Config::BEGIN@47
# spent 11µs making 1 call to strict::unimport |
| 48 | 5 | 4µs | my $callpkg = caller(0); | ||
| 49 | 5 | 3µ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 | 5 | 21µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
| 56 | 5 | 25µs | return; | ||
| 57 | } | ||||
| 58 | |||||
| 59 | 1 | 31µs | 1 | 4µs | die "$0: Perl lib version (5.28.1) doesn't match executable '$^X' version ($])" # spent 4µs making 1 call to version::(bool |
| 60 | unless $^V; | ||||
| 61 | |||||
| 62 | 1 | 8µs | 1 | 3µs | $^V eq 5.28.1 # spent 3µs making 1 call to version::(cmp |
| 63 | or die sprintf "%s: Perl lib version (5.28.1) doesn't match executable '$^X' version (%vd)", $0, $^V; | ||||
| 64 | |||||
| 65 | # spent 2.67ms (140µs+2.53) within Config::FETCH which was called 24 times, avg 111µs/call:
# 12 times (56µs+0s) by File::Copy::copy at line 102 of File/Copy.pm, avg 5µs/call
# 3 times (8µs+0s) by RBM::BEGIN@22 at line 40 of DynaLoader.pm, avg 3µs/call
# once (18µs+2.53ms) by RBM::BEGIN@5 at line 65 of Path/Tiny.pm
# once (48µs+0s) by File::Spec::Unix::BEGIN@4 at line 214 of Cwd.pm
# once (3µs+0s) by main::BEGIN@5 at line 10 of lib.pm
# once (1µs+0s) by main::BEGIN@5 at line 12 of lib.pm
# once (1µs+0s) by RBM::BEGIN@22 at line 57 of DynaLoader.pm
# once (1µs+0s) by RBM::BEGIN@22 at line 55 of DynaLoader.pm
# once (1µs+0s) by RBM::BEGIN@22 at line 59 of DynaLoader.pm
# once (1µs+0s) by main::BEGIN@5 at line 11 of lib.pm
# once (1µs+0s) by RBM::BEGIN@22 at line 58 of DynaLoader.pm | ||||
| 66 | 24 | 11µs | my($self, $key) = @_; | ||
| 67 | |||||
| 68 | # check for cached value (which may be undef so we use exists not defined) | ||||
| 69 | 24 | 268µs | 1 | 2.49ms | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); # spent 2.49ms making 1 call to Config::AUTOLOAD |
| 70 | } | ||||
| 71 | |||||
| 72 | # spent 1µs within Config::TIEHASH which was called:
# once (1µs+0s) by lib::BEGIN@6 at line 85 | ||||
| 73 | 1 | 34µs | bless $_[1], $_[0]; | ||
| 74 | } | ||||
| 75 | |||||
| 76 | sub DESTROY { } | ||||
| 77 | |||||
| 78 | # spent 2.49ms (2.39+101µs) within Config::AUTOLOAD which was called:
# once (2.39ms+101µs) by Config::FETCH at line 69 | ||||
| 79 | 1 | 118µs | require 'Config_heavy.pl'; | ||
| 80 | 1 | 11µs | 2 | 8µs | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; # spent 7µs making 1 call to Config::launcher
# spent 1µs 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 | 25µs | 1 | 1µs | tie %Config, 'Config', { # spent 1µs making 1 call to Config::TIEHASH |
| 86 | archlibexp => '/usr/lib/x86_64-linux-gnu/perl/5.28', | ||||
| 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 => '5.28.0 5.28.0/x86_64-linux-gnu-thread-multi', | ||||
| 96 | intsize => '4', | ||||
| 97 | ldlibpthname => 'LD_LIBRARY_PATH', | ||||
| 98 | libpth => '/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/8/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib', | ||||
| 99 | osname => 'linux', | ||||
| 100 | osvers => '4.9.0', | ||||
| 101 | path_sep => ':', | ||||
| 102 | privlibexp => '/usr/share/perl/5.28', | ||||
| 103 | scriptdir => '/usr/bin', | ||||
| 104 | sitearchexp => '/usr/local/lib/x86_64-linux-gnu/perl/5.28.1', | ||||
| 105 | sitelibexp => '/usr/local/share/perl/5.28.1', | ||||
| 106 | so => 'so', | ||||
| 107 | useithreads => 'define', | ||||
| 108 | usevendorprefix => 'define', | ||||
| 109 | version => '5.28.1', | ||||
| 110 | }; | ||||
# spent 11µs within Config::CORE:match which was called 2 times, avg 6µs/call:
# once (10µs+0s) by Config::fetch_string at line 1448 of Config_heavy.pl
# once (1µs+0s) by Config::AUTOLOAD at line 80 | |||||
# spent 5µs within Config::CORE:pack which was called:
# once (5µs+0s) by Config::AUTOLOAD at line 1424 of Config_heavy.pl | |||||
# spent 9µs within Config::CORE:regcomp which was called:
# once (9µs+0s) by Config::fetch_string at line 1448 of Config_heavy.pl | |||||
# spent 8µs within Config::CORE:subst which was called:
# once (8µs+0s) by Config::AUTOLOAD at line 1425 of Config_heavy.pl | |||||
# spent 25µs within Config::CORE:substcont which was called 2 times, avg 13µs/call:
# 2 times (25µs+0s) by Config::AUTOLOAD at line 1425 of Config_heavy.pl, avg 13µs/call | |||||
# spent 3µs within Config::CORE:unpack which was called:
# once (3µs+0s) by Config::AUTOLOAD at line 1424 of Config_heavy.pl |