Filename | /usr/local/lib/perl5/5.24/mach/Config.pm |
Statements | Executed 122 statements in 2.29ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 5.12ms | 5.41ms | AUTOLOAD | Config::
1 | 1 | 1 | 1.03ms | 2.15ms | BEGIN@11 | Config::
8 | 8 | 8 | 359µs | 359µs | import | Config::
16 | 13 | 7 | 189µs | 5.99ms | FETCH | Config::
1 | 1 | 1 | 32µs | 39µs | BEGIN@9 | Config::
1 | 1 | 1 | 18µs | 67µs | BEGIN@47 | Config::
1 | 1 | 1 | 17µs | 40µs | BEGIN@10 | Config::
1 | 1 | 1 | 6µs | 6µs | TIEHASH | 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 | 54µs | 2 | 46µs | # spent 39µs (32+7) within Config::BEGIN@9 which was called:
# once (32µs+7µs) by Errno::BEGIN@10 at line 9 # spent 39µs making 1 call to Config::BEGIN@9
# spent 7µs making 1 call to strict::import |
10 | 2 | 54µs | 2 | 64µs | # spent 40µs (17+23) within Config::BEGIN@10 which was called:
# once (17µs+23µs) by Errno::BEGIN@10 at line 10 # spent 40µs making 1 call to Config::BEGIN@10
# spent 23µs making 1 call to warnings::import |
11 | 2 | 479µs | 2 | 2.27ms | # spent 2.15ms (1.03+1.13) within Config::BEGIN@11 which was called:
# once (1.03ms+1.13ms) by Errno::BEGIN@10 at line 11 # spent 2.15ms making 1 call to Config::BEGIN@11
# spent 116µs making 1 call to vars::import |
12 | |||||
13 | 1 | 2µs | $VERSION = "5.024003"; | ||
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 | 7µ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 | 3µ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 359µs within Config::import which was called 8 times, avg 45µs/call:
# once (51µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm
# once (49µs+0s) by Pod::Usage::BEGIN@20 at line 20 of Pod/Usage.pm
# once (47µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm
# once (47µs+0s) by Mail::SpamAssassin::Util::BEGIN@70 at line 70 of Mail/SpamAssassin/Util.pm
# once (43µs+0s) by lib::BEGIN@6 at line 6 of lib.pm
# once (42µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (40µs+0s) by Errno::BEGIN@10 at line 10 of Errno.pm
# once (39µs+0s) by Mail::SpamAssassin::BEGIN@88 at line 88 of Mail/SpamAssassin.pm | ||||
41 | 8 | 15µs | shift; | ||
42 | 8 | 43µs | @_ = @Config::EXPORT unless @_; | ||
43 | |||||
44 | 8 | 55µs | my @funcs = grep $_ ne '%Config', @_; | ||
45 | 8 | 30µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
46 | |||||
47 | 2 | 631µs | 2 | 116µs | # spent 67µs (18+49) within Config::BEGIN@47 which was called:
# once (18µs+49µs) by Errno::BEGIN@10 at line 47 # spent 67µs making 1 call to Config::BEGIN@47
# spent 49µs making 1 call to strict::unimport |
48 | 8 | 24µs | my $callpkg = caller(0); | ||
49 | 8 | 34µ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 | 16 | 106µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
56 | 8 | 101µs | return; | ||
57 | } | ||||
58 | |||||
59 | 1 | 73µs | 1 | 11µs | die "$0: Perl lib version (5.24.3) doesn't match executable '$^X' version ($])" # spent 11µs making 1 call to version::(bool |
60 | unless $^V; | ||||
61 | |||||
62 | 1 | 24µs | 1 | 11µs | $^V eq 5.24.3 # spent 11µs making 1 call to version::(cmp |
63 | or die sprintf "%s: Perl lib version (5.24.3) doesn't match executable '$^X' version (%vd)", $0, $^V; | ||||
64 | |||||
65 | |||||
66 | # spent 5.99ms (189µs+5.80) within Config::FETCH which was called 16 times, avg 375µs/call:
# 3 times (28µs+0s) by Mail::SpamAssassin::Logger::Stderr::BEGIN@38 at line 41 of DynaLoader.pm, avg 9µs/call
# 2 times (18µs+0s) by main::BEGIN@23 at line 11 of Errno.pm, avg 9µs/call
# once (44µs+5.58ms) by Net::DNS::Resolver::Base::BEGIN@40 at line 1 of (eval 20)[Net/DNS/Resolver/Base.pm:40]
# once (22µs+228µs) by IO::Socket::SSL::BEGIN@27 at line 34 of IO/Socket/SSL.pm
# once (12µs+0s) by main::BEGIN@39 at line 10 of lib.pm
# once (12µs+0s) by File::Path::BEGIN@6 at line 244 of Cwd.pm
# once (10µs+0s) by Mail::SpamAssassin::Util::clean_path_in_taint_mode at line 183 of Mail/SpamAssassin/Util.pm
# once (8µs+0s) by main::BEGIN@39 at line 12 of lib.pm
# once (7µs+0s) by main::BEGIN@39 at line 11 of lib.pm
# once (7µs+0s) by Mail::SpamAssassin::Logger::Stderr::BEGIN@38 at line 57 of DynaLoader.pm
# once (7µs+0s) by Mail::SpamAssassin::Logger::Stderr::BEGIN@38 at line 60 of DynaLoader.pm
# once (7µs+0s) by Mail::SpamAssassin::Logger::Stderr::BEGIN@38 at line 62 of DynaLoader.pm
# once (7µs+0s) by Mail::SpamAssassin::Logger::Stderr::BEGIN@38 at line 61 of DynaLoader.pm | ||||
67 | 16 | 40µs | my($self, $key) = @_; | ||
68 | |||||
69 | # check for cached value (which may be undef so we use exists not defined) | ||||
70 | 16 | 184µs | 2 | 5.63ms | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); # spent 5.41ms making 1 call to Config::AUTOLOAD
# spent 228µs making 1 call to Config::fetch_string |
71 | } | ||||
72 | |||||
73 | # spent 6µs within Config::TIEHASH which was called:
# once (6µs+0s) by Errno::BEGIN@10 at line 86 | ||||
74 | 1 | 9µs | bless $_[1], $_[0]; | ||
75 | } | ||||
76 | |||||
77 | sub DESTROY { } | ||||
78 | |||||
79 | # spent 5.41ms (5.12+291µs) within Config::AUTOLOAD which was called:
# once (5.12ms+291µs) by Config::FETCH at line 70 | ||||
80 | 1 | 227µs | require 'Config_heavy.pl'; | ||
81 | 1 | 36µs | 2 | 27µs | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; # spent 22µs making 1 call to Config::launcher
# spent 4µ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 | 56µs | 1 | 6µs | tie %Config, 'Config', { # spent 6µs making 1 call to Config::TIEHASH |
87 | archlibexp => '/usr/local/lib/perl5/5.24/mach', | ||||
88 | archname => 'amd64-freebsd-thread-multi', | ||||
89 | cc => 'cc', | ||||
90 | d_readlink => 'define', | ||||
91 | d_symlink => 'define', | ||||
92 | dlext => 'so', | ||||
93 | dlsrc => 'dl_dlopen.xs', | ||||
94 | dont_use_nlink => undef, | ||||
95 | exe_ext => '', | ||||
96 | inc_version_list => ' ', | ||||
97 | intsize => '4', | ||||
98 | ldlibpthname => 'LD_LIBRARY_PATH', | ||||
99 | libpth => '/usr/lib /usr/local/lib /usr/include/clang/3.4.1 /usr/lib', | ||||
100 | osname => 'freebsd', | ||||
101 | osvers => '10.3-release', | ||||
102 | path_sep => ':', | ||||
103 | privlibexp => '/usr/local/lib/perl5/5.24', | ||||
104 | scriptdir => '/usr/local/bin', | ||||
105 | sitearchexp => '/usr/local/lib/perl5/site_perl/mach/5.24', | ||||
106 | sitelibexp => '/usr/local/lib/perl5/site_perl', | ||||
107 | so => 'so', | ||||
108 | useithreads => 'define', | ||||
109 | usevendorprefix => undef, | ||||
110 | version => '5.24.3', | ||||
111 | }; |