| Filename | /Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/darwin-2level/Config.pm | 
| Statements | Executed 36 statements in 936µs | 
| Calls | P | F | Exclusive Time | Inclusive Time | Subroutine | 
|---|---|---|---|---|---|
| 1 | 1 | 1 | 2.51ms | 2.60ms | Config::AUTOLOAD | 
| 1 | 1 | 1 | 22µs | 25µs | Config::BEGIN@9 | 
| 2 | 2 | 2 | 18µs | 18µs | Config::import | 
| 2 | 2 | 2 | 16µs | 2.65ms | Config::FETCH | 
| 1 | 1 | 1 | 13µs | 13µs | Config::CORE:unpack (opcode) | 
| 1 | 1 | 1 | 11µs | 11µs | Config::CORE:subst (opcode) | 
| 2 | 2 | 2 | 10µs | 10µs | Config::CORE:match (opcode) | 
| 1 | 1 | 1 | 10µs | 10µs | Config::CORE:regcomp (opcode) | 
| 1 | 1 | 1 | 8µs | 13µs | Config::BEGIN@47 | 
| 2 | 1 | 1 | 5µs | 5µs | Config::CORE:substcont (opcode) | 
| 1 | 1 | 1 | 4µs | 29µs | Config::BEGIN@10 | 
| 1 | 1 | 1 | 3µs | 3µs | Config::CORE:pack (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 | # https://github.com/Perl/perl5/blob/blead/Porting/Glossary | ||||
| 7 | |||||
| 8 | package Config; | ||||
| 9 | 2 | 27µs | 2 | 28µs | # spent 25µs (22+3) within Config::BEGIN@9 which was called:
#    once (22µs+3µs) by Moo::_Utils::BEGIN@35 at line 9 # spent    25µs making 1 call to Config::BEGIN@9
# spent     3µs making 1 call to strict::import | 
| 10 | 2 | 116µs | 2 | 54µs | # spent 29µs (4+25) within Config::BEGIN@10 which was called:
#    once (4µs+25µs) by Moo::_Utils::BEGIN@35 at line 10 # spent    29µs making 1 call to Config::BEGIN@10
# spent    25µs making 1 call to warnings::import | 
| 11 | our ( %Config, $VERSION ); | ||||
| 12 | |||||
| 13 | 1 | 0s | $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 | 1µs | @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 18µs within Config::import which was called 2 times, avg 9µs/call:
#    once (11µs+0s) by Pod::Usage::BEGIN@17 at line 17 of Pod/Usage.pm
#    once (7µs+0s) by Path::Tiny::BEGIN@11 at line 11 of Path/Tiny.pm | ||||
| 41 | 2 | 0s | shift; | ||
| 42 | 2 | 2µs | @_ = @Config::EXPORT unless @_; | ||
| 43 | |||||
| 44 | 2 | 3µs | my @funcs = grep $_ ne '%Config', @_; | ||
| 45 | 2 | 2µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
| 46 | |||||
| 47 | 2 | 278µs | 2 | 18µs | # spent 13µs (8+5) within Config::BEGIN@47 which was called:
#    once (8µs+5µs) by Moo::_Utils::BEGIN@35 at line 47     # spent    13µs making 1 call to Config::BEGIN@47
    # spent     5µs making 1 call to strict::unimport | 
| 48 | 2 | 1µs | my $callpkg = caller(0); | ||
| 49 | 2 | 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 | 2 | 4µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
| 56 | 2 | 6µs | return; | ||
| 57 | } | ||||
| 58 | |||||
| 59 | 1 | 27µs | 1 | 4µs | die "$0: Perl lib version (5.36.0) doesn't match executable '$^X' version ($])" # spent     4µs making 1 call to version::(bool | 
| 60 | unless $^V; | ||||
| 61 | |||||
| 62 | 1 | 6µs | 1 | 3µs | $^V eq 5.36.0 # spent     3µ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 | |||||
| 66 | # spent 2.65ms (16µs+2.63) within Config::FETCH which was called 2 times, avg 1.32ms/call:
#    once (13µs+2.63ms) by JSON::Schema::Modern::BEGIN@25 at line 64 of Path/Tiny.pm
#    once (3µs+0s) by Moo::BEGIN@6 at line 284 of Moo/_Utils.pm | ||||
| 67 | 2 | 1µs | my($self, $key) = @_; | ||
| 68 | |||||
| 69 | # check for cached value (which may be undef so we use exists not defined) | ||||
| 70 | 2 | 13µs | 1 | 2.60ms | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);     # spent  2.60ms making 1 call to Config::AUTOLOAD | 
| 71 | } | ||||
| 72 | |||||
| 73 | # spent 1µs within Config::TIEHASH which was called:
#    once (1µs+0s) by Moo::_Utils::BEGIN@35 at line 86 | ||||
| 74 | 1 | 2µs | bless $_[1], $_[0]; | ||
| 75 | } | ||||
| 76 | |||||
| 77 | sub DESTROY { } | ||||
| 78 | |||||
| 79 | # spent 2.60ms (2.51+80µs) within Config::AUTOLOAD which was called:
#    once (2.51ms+80µs) by Config::FETCH at line 70 | ||||
| 80 | 1 | 407µs | require 'Config_heavy.pl'; | ||
| 81 | 1 | 11µs | 2 | 7µs | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;     # spent     6µs making 1 call to Config::launcher
    # spent     1µs making 1 call to Config::CORE:match | 
| 82 | die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; | ||||
| 83 | } | ||||
| 84 | |||||
| 85 | # tie returns the object, so the value returned to require will be true. | ||||
| 86 | 1 | 23µs | 1 | 1µs | tie %Config, 'Config', { # spent     1µs making 1 call to Config::TIEHASH | 
| 87 | archlibexp => '/Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/darwin-2level', | ||||
| 88 | archname => 'darwin-2level', | ||||
| 89 | cc => 'cc', | ||||
| 90 | d_readlink => 'define', | ||||
| 91 | d_symlink => 'define', | ||||
| 92 | dlext => 'bundle', | ||||
| 93 | dlsrc => 'dl_dlopen.xs', | ||||
| 94 | dont_use_nlink => undef, | ||||
| 95 | exe_ext => '', | ||||
| 96 | inc_version_list => ' ', | ||||
| 97 | intsize => '4', | ||||
| 98 | ldlibpthname => 'DYLD_LIBRARY_PATH', | ||||
| 99 | libpth => '/usr/local/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /opt/local/lib /usr/lib', | ||||
| 100 | osname => 'darwin', | ||||
| 101 | osvers => '20.6.0', | ||||
| 102 | path_sep => ':', | ||||
| 103 | privlibexp => '/Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0', | ||||
| 104 | scriptdir => '/Users/ether/perl5/perlbrew/perls/36.0/bin', | ||||
| 105 | sitearchexp => '/Users/ether/perl5/perlbrew/perls/36.0/lib/site_perl/5.36.0/darwin-2level', | ||||
| 106 | sitelibexp => '/Users/ether/perl5/perlbrew/perls/36.0/lib/site_perl/5.36.0', | ||||
| 107 | so => 'dylib', | ||||
| 108 | useithreads => undef, | ||||
| 109 | usevendorprefix => undef, | ||||
| 110 | version => '5.36.0', | ||||
| 111 | }; | ||||
| # spent 10µs within Config::CORE:match which was called 2 times, avg 5µs/call:
#    once (9µs+0s) by Config::fetch_string at line 1437 of Config_heavy.pl
#    once (1µs+0s) by Config::AUTOLOAD at line 81 | |||||
| # spent 3µs within Config::CORE:pack which was called:
#    once (3µs+0s) by Config::AUTOLOAD at line 1413 of Config_heavy.pl | |||||
| # spent 10µs within Config::CORE:regcomp which was called:
#    once (10µs+0s) by Config::fetch_string at line 1437 of Config_heavy.pl | |||||
| # spent 11µs within Config::CORE:subst which was called:
#    once (11µs+0s) by Config::AUTOLOAD at line 1414 of Config_heavy.pl | |||||
| # spent 5µs within Config::CORE:substcont which was called 2 times, avg 2µs/call:
# 2 times (5µs+0s) by Config::AUTOLOAD at line 1414 of Config_heavy.pl, avg 2µs/call | |||||
| # spent 13µs within Config::CORE:unpack which was called:
#    once (13µs+0s) by Config::AUTOLOAD at line 1413 of Config_heavy.pl |