Filename | C:/tmp64ng/perl/lib/Config.pm |
Statements | Executed 9380 statements in 62.4ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4651 | 19 | 7 | 31.2ms | 46.8ms | FETCH | Config::
1 | 1 | 1 | 15.6ms | 15.6ms | BEGIN@10 | Config::
1 | 1 | 1 | 0s | 0s | AUTOLOAD | Config::
1 | 1 | 1 | 0s | 0s | BEGIN@11 | Config::
1 | 1 | 1 | 0s | 0s | BEGIN@47 | Config::
1 | 1 | 1 | 0s | 0s | BEGIN@9 | Config::
0 | 0 | 0 | 0s | 0s | DESTROY | Config::
1 | 1 | 1 | 0s | 0s | TIEHASH | Config::
7 | 7 | 7 | 0s | 0s | import | 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 | 2 | 0s | 2 | 0s | # spent 0s within Config::BEGIN@9 which was called:
# once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 9 # spent 0s making 1 call to Config::BEGIN@9
# spent 0s making 1 call to strict::import |
10 | 2 | 15.6ms | 2 | 15.6ms | # spent 15.6ms within Config::BEGIN@10 which was called:
# once (15.6ms+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 10 # spent 15.6ms making 1 call to Config::BEGIN@10
# spent 0s making 1 call to warnings::import |
11 | 2 | 0s | 2 | 0s | # spent 0s within Config::BEGIN@11 which was called:
# once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 11 # spent 0s making 1 call to Config::BEGIN@11
# spent 0s making 1 call to vars::import |
12 | |||||
13 | 1 | 0s | $VERSION = "5.020002"; | ||
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 | 0s | 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 | 0s | @Config::EXPORT = qw(%Config); | ||
24 | 1 | 0s | @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 0s within Config::import which was called 7 times, avg 0s/call:
# once (0s+0s) by main::BEGIN@2 at line 2 of Makefile.PL
# once (0s+0s) by Win32::API::BEGIN@19 at line 19 of Win32/API.pm
# once (0s+0s) by Win32::API::Struct::BEGIN@16 at line 16 of Win32/API/Struct.pm
# once (0s+0s) by ExtUtils::Manifest::BEGIN@4 at line 4 of ExtUtils/Manifest.pm
# once (0s+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm
# once (0s+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (0s+0s) by Win32::API::Type::BEGIN@23 at line 23 of Win32/API/Type.pm | ||||
41 | 7 | 0s | shift; | ||
42 | 7 | 0s | @_ = @Config::EXPORT unless @_; | ||
43 | |||||
44 | 7 | 0s | my @funcs = grep $_ ne '%Config', @_; | ||
45 | 7 | 0s | my $export_Config = @funcs < @_ ? 1 : 0; | ||
46 | |||||
47 | 2 | 0s | 2 | 0s | # spent 0s within Config::BEGIN@47 which was called:
# once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 47 # spent 0s making 1 call to Config::BEGIN@47
# spent 0s making 1 call to strict::unimport |
48 | 7 | 0s | my $callpkg = caller(0); | ||
49 | 7 | 0s | 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 | 7 | 0s | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
56 | 7 | 0s | return; | ||
57 | } | ||||
58 | |||||
59 | 1 | 0s | 1 | 0s | die "$0: Perl lib version (5.20.2) doesn't match executable '$^X' version ($])" # spent 0s making 1 call to version::(bool |
60 | unless $^V; | ||||
61 | |||||
62 | 1 | 0s | 1 | 0s | $^V eq 5.20.2 # spent 0s making 1 call to version::(cmp |
63 | or die sprintf "%s: Perl lib version (5.20.2) doesn't match executable '$^X' version (%vd)", $0, $^V; | ||||
64 | |||||
65 | |||||
66 | # spent 46.8ms (31.2+15.6) within Config::FETCH which was called 4651 times, avg 10µs/call:
# 1103 times (15.6ms+0s) by ExtUtils::MakeMaker::BEGIN@9 at line 10 of ExtUtils/MakeMaker/Config.pm, avg 14µs/call
# 1103 times (0s+15.6ms) by Portable::Config::apply at line 60 of Portable/Config.pm, avg 14µs/call
# 1103 times (0s+0s) by Portable::Config::apply at line 85 of Portable/Config.pm, avg 0s/call
# 686 times (0s+0s) by Portable::Config::apply at line 86 of Portable/Config.pm, avg 0s/call
# 634 times (15.6ms+0s) by Portable::Config::apply at line 87 of Portable/Config.pm, avg 25µs/call
# 3 times (0s+0s) by Win32::API::BEGIN@62 at line 68 of Win32/API/Type.pm, avg 0s/call
# 3 times (0s+0s) by Win32::API::BEGIN@20 at line 41 of DynaLoader.pm, avg 0s/call
# 3 times (0s+0s) by ExtUtils::MakeMaker::flush at line 1206 of ExtUtils/MakeMaker.pm, avg 0s/call
# 3 times (0s+0s) by main::RUNTIME at line 51 of Makefile.PL, avg 0s/call
# once (0s+0s) by Win32::API::Type::BEGIN@161 at line 162 of Win32/API/Type.pm
# once (0s+0s) by Win32::API::BEGIN@20 at line 61 of DynaLoader.pm
# once (0s+0s) by Win32::API::BEGIN@20 at line 65 of DynaLoader.pm
# once (0s+0s) by Win32::API::BEGIN@20 at line 66 of DynaLoader.pm
# once (0s+0s) by Win32::API::BEGIN@20 at line 64 of DynaLoader.pm
# once (0s+0s) by Win32::API::BEGIN@20 at line 50 of Win32/API.pm
# once (0s+0s) by Win32::API::BEGIN@20 at line 49 of Win32/API.pm
# once (0s+0s) by main::RUNTIME at line 66 of Makefile.PL
# once (0s+0s) by main::RUNTIME at line 67 of Makefile.PL
# once (0s+0s) by main::RUNTIME at line 59 of Makefile.PL | ||||
67 | 4651 | 15.6ms | my($self, $key) = @_; | ||
68 | |||||
69 | # check for cached value (which may be undef so we use exists not defined) | ||||
70 | 4651 | 31.2ms | 1080 | 15.6ms | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); # spent 15.6ms making 1080 calls to Config::fetch_string, avg 14µs/call |
71 | } | ||||
72 | |||||
73 | # spent 0s within Config::TIEHASH which was called:
# once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 86 | ||||
74 | 1 | 0s | bless $_[1], $_[0]; | ||
75 | } | ||||
76 | |||||
77 | sub DESTROY { } | ||||
78 | |||||
79 | # spent 0s within Config::AUTOLOAD which was called:
# once (0s+0s) by Portable::Config::apply at line 60 of Portable/Config.pm | ||||
80 | 1 | 0s | require 'Config_heavy.pl'; | ||
81 | 1 | 0s | 2 | 0s | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; # spent 0s making 1 call to Config::CORE:match
# spent 0s making 1 call to Config::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 | 1 | 0s | 1 | 0s | tie %Config, 'Config', { # spent 0s making 1 call to Config::TIEHASH |
87 | archlibexp => 'C:\\strawberry\\perl\\lib', | ||||
88 | archname => 'MSWin32-x64-multi-thread', | ||||
89 | cc => 'gcc', | ||||
90 | d_readlink => undef, | ||||
91 | d_symlink => undef, | ||||
92 | dlext => 'xs.dll', | ||||
93 | dlsrc => 'dl_win32.xs', | ||||
94 | dont_use_nlink => undef, | ||||
95 | exe_ext => '.exe', | ||||
96 | inc_version_list => '', | ||||
97 | intsize => '4', | ||||
98 | ldlibpthname => '', | ||||
99 | libpth => 'C:\\strawberry\\c\\lib C:\\strawberry\\c\\x86_64-w64-mingw32\\lib C:\\strawberry\\c\\lib\\gcc\\x86_64-w64-mingw32\\4.8.3', | ||||
100 | osname => 'MSWin32', | ||||
101 | osvers => '6.3', | ||||
102 | path_sep => ';', | ||||
103 | privlibexp => 'C:\\strawberry\\perl\\lib', | ||||
104 | scriptdir => 'C:\\strawberry\\perl\\bin', | ||||
105 | sitearchexp => 'C:\\strawberry\\perl\\site\\lib', | ||||
106 | sitelibexp => 'C:\\strawberry\\perl\\site\\lib', | ||||
107 | so => 'dll', | ||||
108 | useithreads => 'define', | ||||
109 | usevendorprefix => 'define', | ||||
110 | version => '5.20.2', | ||||
111 | }; | ||||
112 | 1 | 0s | eval { | ||
113 | 1 | 0s | require Portable; | ||
114 | 1 | 0s | 1 | 78.0ms | Portable->import('Config'); # spent 78.0ms making 1 call to Portable::import |
115 | }; | ||||
116 | |||||
117 | 1 | 0s | 1; |