Filename | /usr/local/perls/perl-5.26.1/lib/5.26.1/darwin-2level/Config.pm |
Statements | Executed 36 statements in 328µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
10 | 7 | 3 | 139µs | 139µs | FETCH | Config::
2 | 2 | 2 | 109µs | 109µs | import | Config::
0 | 0 | 0 | 0s | 0s | AUTOLOAD | Config::
0 | 0 | 0 | 0s | 0s | DESTROY | Config::
0 | 0 | 0 | 0s | 0s | TIEHASH | Config::
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 | use strict; | ||||
10 | use warnings; | ||||
11 | use vars '%Config', '$VERSION'; | ||||
12 | |||||
13 | $VERSION = "5.026001"; | ||||
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 | 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 | @Config::EXPORT = qw(%Config); | ||||
24 | @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 109µs within Config::import which was called 2 times, avg 54µs/call:
# once (64µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm
# once (45µs+0s) by Archive::Tar::BEGIN@44 at line 44 of Archive/Tar.pm | ||||
41 | 2 | 2µs | shift; | ||
42 | 2 | 13µs | @_ = @Config::EXPORT unless @_; | ||
43 | |||||
44 | 2 | 10µs | my @funcs = grep $_ ne '%Config', @_; | ||
45 | 2 | 5µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
46 | |||||
47 | no strict 'refs'; | ||||
48 | 2 | 13µs | my $callpkg = caller(0); | ||
49 | 2 | 9µ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 | 28µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
56 | 2 | 47µs | return; | ||
57 | } | ||||
58 | |||||
59 | die "$0: Perl lib version (5.26.1) doesn't match executable '$^X' version ($])" | ||||
60 | unless $^V; | ||||
61 | |||||
62 | $^V eq 5.26.1 | ||||
63 | or die sprintf "%s: Perl lib version (5.26.1) doesn't match executable '$^X' version (%vd)", $0, $^V; | ||||
64 | |||||
65 | |||||
66 | # spent 139µs within Config::FETCH which was called 10 times, avg 14µs/call:
# 3 times (35µs+0s) by CPAN::has_inst at line 41 of DynaLoader.pm, avg 12µs/call
# 2 times (36µs+0s) by CPAN::_flock at line 508 of CPAN.pm, avg 18µs/call
# once (51µs+0s) by Archive::Tar::BEGIN@43 at line 45 of Archive/Tar.pm
# once (5µs+0s) by CPAN::has_inst at line 57 of DynaLoader.pm
# once (4µs+0s) by CPAN::has_inst at line 62 of DynaLoader.pm
# once (4µs+0s) by CPAN::has_inst at line 61 of DynaLoader.pm
# once (4µs+0s) by CPAN::has_inst at line 60 of DynaLoader.pm | ||||
67 | 10 | 28µs | my($self, $key) = @_; | ||
68 | |||||
69 | # check for cached value (which may be undef so we use exists not defined) | ||||
70 | 10 | 173µs | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); | ||
71 | } | ||||
72 | |||||
73 | sub TIEHASH { | ||||
74 | bless $_[1], $_[0]; | ||||
75 | } | ||||
76 | |||||
77 | sub DESTROY { } | ||||
78 | |||||
79 | sub AUTOLOAD { | ||||
80 | require 'Config_heavy.pl'; | ||||
81 | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; | ||||
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 | tie %Config, 'Config', { | ||||
87 | archlibexp => '/usr/local/perls/perl-5.26.1/lib/5.26.1/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 => '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib /usr/local/lib /usr/lib', | ||||
100 | osname => 'darwin', | ||||
101 | osvers => '17.2.0', | ||||
102 | path_sep => ':', | ||||
103 | privlibexp => '/usr/local/perls/perl-5.26.1/lib/5.26.1', | ||||
104 | scriptdir => '/usr/local/perls/perl-5.26.1/bin', | ||||
105 | sitearchexp => '/usr/local/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-2level', | ||||
106 | sitelibexp => '/usr/local/perls/perl-5.26.1/lib/site_perl/5.26.1', | ||||
107 | so => 'dylib', | ||||
108 | useithreads => undef, | ||||
109 | usevendorprefix => undef, | ||||
110 | version => '5.26.1', | ||||
111 | }; |