Filename | /usr/lib64/perl5/Config.pm |
Statements | Executed 65 statements in 701µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4 | 4 | 4 | 49µs | 49µs | import | Config::
9 | 6 | 2 | 24µs | 24µs | FETCH | Config::
1 | 1 | 1 | 12µs | 30µs | BEGIN@9 | Config::
1 | 1 | 1 | 10µs | 26µs | BEGIN@11 | Config::
1 | 1 | 1 | 10µs | 14µs | BEGIN@10 | Config::
1 | 1 | 1 | 8µs | 19µs | BEGIN@45 | 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 | 33µs | 2 | 49µs | # spent 30µs (12+19) within Config::BEGIN@9 which was called:
# once (12µs+19µs) by DynaLoader::BEGIN@22 at line 9 # spent 30µs making 1 call to Config::BEGIN@9
# spent 19µs making 1 call to strict::import |
10 | 2 | 70µs | 2 | 18µs | # spent 14µs (10+4) within Config::BEGIN@10 which was called:
# once (10µs+4µs) by DynaLoader::BEGIN@22 at line 10 # spent 14µs making 1 call to Config::BEGIN@10
# spent 4µs making 1 call to warnings::import |
11 | 2 | 127µs | 2 | 42µs | # spent 26µs (10+16) within Config::BEGIN@11 which was called:
# once (10µs+16µs) by DynaLoader::BEGIN@22 at line 11 # spent 26µs making 1 call to Config::BEGIN@11
# spent 16µs making 1 call to vars::import |
12 | |||||
13 | # Skip @Config::EXPORT because it only contains %Config, which we special | ||||
14 | # case below as it's not a function. @Config::EXPORT won't change in the | ||||
15 | # lifetime of Perl 5. | ||||
16 | 1 | 4µs | my %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1, | ||
17 | config_re => 1, compile_date => 1, local_patches => 1, | ||||
18 | bincompat_options => 1, non_bincompat_options => 1, | ||||
19 | header_files => 1); | ||||
20 | |||||
21 | 1 | 900ns | @Config::EXPORT = qw(%Config); | ||
22 | 1 | 3µs | @Config::EXPORT_OK = keys %Export_Cache; | ||
23 | |||||
24 | # Need to stub all the functions to make code such as print Config::config_sh | ||||
25 | # keep working | ||||
26 | |||||
27 | sub bincompat_options; | ||||
28 | sub compile_date; | ||||
29 | sub config_re; | ||||
30 | sub config_sh; | ||||
31 | sub config_vars; | ||||
32 | sub header_files; | ||||
33 | sub local_patches; | ||||
34 | sub myconfig; | ||||
35 | sub non_bincompat_options; | ||||
36 | |||||
37 | # Define our own import method to avoid pulling in the full Exporter: | ||||
38 | # spent 49µs within Config::import which was called 4 times, avg 12µs/call:
# once (15µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (12µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm
# once (11µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm
# once (10µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm | ||||
39 | 4 | 1µs | shift; | ||
40 | 4 | 6µs | @_ = @Config::EXPORT unless @_; | ||
41 | |||||
42 | 4 | 6µs | my @funcs = grep $_ ne '%Config', @_; | ||
43 | 4 | 3µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
44 | |||||
45 | 2 | 303µs | 2 | 29µs | # spent 19µs (8+11) within Config::BEGIN@45 which was called:
# once (8µs+11µs) by DynaLoader::BEGIN@22 at line 45 # spent 19µs making 1 call to Config::BEGIN@45
# spent 11µs making 1 call to strict::unimport |
46 | 4 | 8µs | my $callpkg = caller(0); | ||
47 | 4 | 5µs | foreach my $func (@funcs) { | ||
48 | die qq{"$func" is not exported by the Config module\n} | ||||
49 | unless $Export_Cache{$func}; | ||||
50 | *{$callpkg.'::'.$func} = \&{$func}; | ||||
51 | } | ||||
52 | |||||
53 | 4 | 13µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
54 | 4 | 19µs | return; | ||
55 | } | ||||
56 | |||||
57 | 1 | 16µs | 1 | 6µs | die "Perl lib version (5.16.3) doesn't match executable '$0' version ($])" # spent 6µs making 1 call to version::(bool |
58 | unless $^V; | ||||
59 | |||||
60 | 1 | 10µs | 1 | 5µs | $^V eq 5.16.3 # spent 5µs making 1 call to version::(cmp |
61 | or die "Perl lib version (5.16.3) doesn't match executable '$0' version (" . | ||||
62 | sprintf("v%vd",$^V) . ")"; | ||||
63 | |||||
64 | |||||
65 | # spent 24µs within Config::FETCH which was called 9 times, avg 3µs/call:
# 3 times (12µs+0s) by Foswiki::Request::BEGIN@39 at line 40 of DynaLoader.pm, avg 4µs/call
# 2 times (5µs+0s) by Foswiki::Meta::BEGIN@113 at line 11 of Errno.pm, avg 3µs/call
# once (2µs+0s) by Foswiki::Request::BEGIN@39 at line 60 of DynaLoader.pm
# once (2µs+0s) by Foswiki::Request::BEGIN@39 at line 65 of DynaLoader.pm
# once (1µs+0s) by Foswiki::Request::BEGIN@39 at line 63 of DynaLoader.pm
# once (1µs+0s) by Foswiki::Request::BEGIN@39 at line 64 of DynaLoader.pm | ||||
66 | 9 | 4µs | my($self, $key) = @_; | ||
67 | |||||
68 | # check for cached value (which may be undef so we use exists not defined) | ||||
69 | 9 | 39µs | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); | ||
70 | } | ||||
71 | |||||
72 | # spent 5µs within Config::TIEHASH which was called:
# once (5µs+0s) by DynaLoader::BEGIN@22 at line 85 | ||||
73 | 1 | 7µs | bless $_[1], $_[0]; | ||
74 | } | ||||
75 | |||||
76 | sub DESTROY { } | ||||
77 | |||||
78 | sub AUTOLOAD { | ||||
79 | require 'Config_heavy.pl'; | ||||
80 | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; | ||||
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 | 23µs | 1 | 5µs | tie %Config, 'Config', { # spent 5µs making 1 call to Config::TIEHASH |
86 | archlibexp => '/usr/lib64/perl5', | ||||
87 | archname => 'x86_64-linux-thread-multi', | ||||
88 | cc => '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 => ' ', | ||||
96 | intsize => '4', | ||||
97 | ldlibpthname => 'LD_LIBRARY_PATH', | ||||
98 | libpth => '/usr/local/lib64 /lib64 /usr/lib64', | ||||
99 | osname => 'linux', | ||||
100 | osvers => '2.6.32-220.17.1.el6.x86_64', | ||||
101 | path_sep => ':', | ||||
102 | privlibexp => '/usr/share/perl5', | ||||
103 | scriptdir => '/usr/bin', | ||||
104 | sitearchexp => '/usr/local/lib64/perl5', | ||||
105 | sitelibexp => '/usr/local/share/perl5', | ||||
106 | so => 'so', | ||||
107 | useithreads => 'define', | ||||
108 | usevendorprefix => 'define', | ||||
109 | version => '5.16.3', | ||||
110 | }; |