Filename | /usr/lib/perl5/core_perl/Config.pm |
Statements | Executed 38 statements in 1.74ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
7 | 5 | 1 | 36µs | 36µs | FETCH | Config::
1 | 1 | 1 | 28µs | 28µs | import | Config::
1 | 1 | 1 | 22µs | 53µs | BEGIN@9 | Config::
1 | 1 | 1 | 18µs | 28µs | BEGIN@10 | Config::
1 | 1 | 1 | 17µs | 43µs | BEGIN@47 | Config::
1 | 1 | 1 | 16µs | 99µs | BEGIN@11 | Config::
1 | 1 | 1 | 5µs | 5µs | TIEHASH | Config::
0 | 0 | 0 | 0s | 0s | AUTOLOAD | Config::
0 | 0 | 0 | 0s | 0s | DESTROY | 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 | 62µs | 2 | 84µs | # spent 53µs (22+31) within Config::BEGIN@9 which was called:
# once (22µs+31µs) by DynaLoader::BEGIN@22 at line 9 # spent 53µs making 1 call to Config::BEGIN@9
# spent 31µs making 1 call to strict::import |
10 | 2 | 64µs | 2 | 39µs | # spent 28µs (18+11) within Config::BEGIN@10 which was called:
# once (18µs+11µs) by DynaLoader::BEGIN@22 at line 10 # spent 28µs making 1 call to Config::BEGIN@10
# spent 11µs making 1 call to warnings::import |
11 | 2 | 407µs | 2 | 182µs | # spent 99µs (16+83) within Config::BEGIN@11 which was called:
# once (16µs+83µs) by DynaLoader::BEGIN@22 at line 11 # spent 99µs making 1 call to Config::BEGIN@11
# spent 83µs making 1 call to vars::import |
12 | |||||
13 | 1 | 2µs | $VERSION = "5.018002"; | ||
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 | 10µ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 | 2µs | @Config::EXPORT = qw(%Config); | ||
24 | 1 | 7µ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 28µs within Config::import which was called:
# once (28µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm | ||||
41 | 1 | 500ns | shift; | ||
42 | 1 | 3µs | @_ = @Config::EXPORT unless @_; | ||
43 | |||||
44 | 1 | 4µs | my @funcs = grep $_ ne '%Config', @_; | ||
45 | 1 | 2µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
46 | |||||
47 | 2 | 874µs | 2 | 70µs | # spent 43µs (17+27) within Config::BEGIN@47 which was called:
# once (17µs+27µs) by DynaLoader::BEGIN@22 at line 47 # spent 43µs making 1 call to Config::BEGIN@47
# spent 27µs making 1 call to strict::unimport |
48 | 1 | 2µs | my $callpkg = caller(0); | ||
49 | 1 | 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 | 1 | 10µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
56 | 1 | 11µs | return; | ||
57 | } | ||||
58 | |||||
59 | 1 | 86µs | 1 | 14µs | die "Perl lib version (5.18.2) doesn't match executable '$0' version ($])" # spent 14µs making 1 call to version::(bool |
60 | unless $^V; | ||||
61 | |||||
62 | 1 | 26µs | 1 | 13µs | $^V eq 5.18.2 # spent 13µs making 1 call to version::(cmp |
63 | or die "Perl lib version (5.18.2) doesn't match executable '$0' version (" . | ||||
64 | sprintf("v%vd",$^V) . ")"; | ||||
65 | |||||
66 | |||||
67 | # spent 36µs within Config::FETCH which was called 7 times, avg 5µs/call:
# 3 times (19µs+0s) by List::MoreUtils::BEGIN@6 at line 40 of DynaLoader.pm, avg 6µs/call
# once (5µs+0s) by List::MoreUtils::BEGIN@6 at line 63 of DynaLoader.pm
# once (4µs+0s) by List::MoreUtils::BEGIN@6 at line 60 of DynaLoader.pm
# once (4µs+0s) by List::MoreUtils::BEGIN@6 at line 64 of DynaLoader.pm
# once (4µs+0s) by List::MoreUtils::BEGIN@6 at line 65 of DynaLoader.pm | ||||
68 | 7 | 6µs | my($self, $key) = @_; | ||
69 | |||||
70 | # check for cached value (which may be undef so we use exists not defined) | ||||
71 | 7 | 66µs | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); | ||
72 | } | ||||
73 | |||||
74 | # spent 5µs within Config::TIEHASH which was called:
# once (5µs+0s) by DynaLoader::BEGIN@22 at line 87 | ||||
75 | 1 | 12µs | bless $_[1], $_[0]; | ||
76 | } | ||||
77 | |||||
78 | sub DESTROY { } | ||||
79 | |||||
80 | sub AUTOLOAD { | ||||
81 | require 'Config_heavy.pl'; | ||||
82 | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; | ||||
83 | die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; | ||||
84 | } | ||||
85 | |||||
86 | # tie returns the object, so the value returned to require will be true. | ||||
87 | 1 | 76µs | 1 | 5µs | tie %Config, 'Config', { # spent 5µs making 1 call to Config::TIEHASH |
88 | archlibexp => '/usr/lib/perl5/core_perl', | ||||
89 | archname => 'x86_64-linux-thread-multi', | ||||
90 | cc => 'cc', | ||||
91 | d_readlink => 'define', | ||||
92 | d_symlink => 'define', | ||||
93 | dlext => 'so', | ||||
94 | dlsrc => 'dl_dlopen.xs', | ||||
95 | dont_use_nlink => undef, | ||||
96 | exe_ext => '', | ||||
97 | inc_version_list => ' ', | ||||
98 | intsize => '4', | ||||
99 | ldlibpthname => 'LD_LIBRARY_PATH', | ||||
100 | libpth => '/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /lib64 /usr/lib64', | ||||
101 | osname => 'linux', | ||||
102 | osvers => '3.12.6-1-arch', | ||||
103 | path_sep => ':', | ||||
104 | privlibexp => '/usr/share/perl5/core_perl', | ||||
105 | scriptdir => '/usr/bin/core_perl', | ||||
106 | sitearchexp => '/usr/lib/perl5/site_perl', | ||||
107 | sitelibexp => '/usr/share/perl5/site_perl', | ||||
108 | so => 'so', | ||||
109 | useithreads => 'define', | ||||
110 | usevendorprefix => 'define', | ||||
111 | version => '5.18.2', | ||||
112 | }; |