Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/darwin-2level/Config.pm |
Statements | Executed 214 statements in 991µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 1.54ms | 1.66ms | AUTOLOAD | Config::
1 | 1 | 1 | 386µs | 702µs | BEGIN@11 | Config::
66 | 13 | 9 | 154µs | 1.93ms | FETCH | Config::
8 | 8 | 8 | 97µs | 97µs | import | Config::
1 | 1 | 1 | 14µs | 30µs | BEGIN@9 | Config::
1 | 1 | 1 | 7µs | 11µs | BEGIN@10 | Config::
1 | 1 | 1 | 7µs | 18µs | BEGIN@47 | Config::
1 | 1 | 1 | 2µs | 2µ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 | 21µs | 2 | 45µs | # spent 30µs (14+16) within Config::BEGIN@9 which was called:
# once (14µs+16µs) by Errno::BEGIN@8 at line 9 # spent 30µs making 1 call to Config::BEGIN@9
# spent 16µs making 1 call to strict::import |
10 | 2 | 21µs | 2 | 15µs | # spent 11µs (7+4) within Config::BEGIN@10 which was called:
# once (7µs+4µs) by Errno::BEGIN@8 at line 10 # spent 11µs making 1 call to Config::BEGIN@10
# spent 4µs making 1 call to warnings::import |
11 | 2 | 189µs | 2 | 737µs | # spent 702µs (386+316) within Config::BEGIN@11 which was called:
# once (386µs+316µs) by Errno::BEGIN@8 at line 11 # spent 702µs making 1 call to Config::BEGIN@11
# spent 36µs making 1 call to vars::import |
12 | |||||
13 | 1 | 500ns | $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 | 3µ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 | 700ns | @Config::EXPORT = qw(%Config); | ||
24 | 1 | 2µ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 97µs within Config::import which was called 8 times, avg 12µs/call:
# once (17µs+0s) by Path::Tiny::BEGIN@11 at line 11 of Path/Tiny.pm
# once (14µs+0s) by Env::Array::BEGIN@122 at line 122 of Env.pm
# once (13µs+0s) by Path::IsDev::NegativeHeuristic::PerlINC::BEGIN@34 at line 34 of Path/IsDev/NegativeHeuristic/PerlINC.pm
# once (12µs+0s) by locale::BEGIN@4 at line 4 of locale.pm
# once (11µs+0s) by Pod::Usage::BEGIN@19 at line 19 of Pod/Usage.pm
# once (11µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (10µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm
# once (9µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm | ||||
41 | 8 | 1µs | shift; | ||
42 | 8 | 14µs | @_ = @Config::EXPORT unless @_; | ||
43 | |||||
44 | 8 | 14µs | my @funcs = grep $_ ne '%Config', @_; | ||
45 | 8 | 7µs | my $export_Config = @funcs < @_ ? 1 : 0; | ||
46 | |||||
47 | 2 | 274µs | 2 | 30µs | # spent 18µs (7+11) within Config::BEGIN@47 which was called:
# once (7µs+11µs) by Errno::BEGIN@8 at line 47 # spent 18µs making 1 call to Config::BEGIN@47
# spent 11µs making 1 call to strict::unimport |
48 | 8 | 9µs | my $callpkg = caller(0); | ||
49 | 8 | 8µ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 | 8 | 24µs | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||
56 | 8 | 41µs | return; | ||
57 | } | ||||
58 | |||||
59 | 1 | 38µs | 1 | 7µs | die "Perl lib version (5.18.2) doesn't match executable '$0' version ($])" # spent 7µs making 1 call to version::(bool |
60 | unless $^V; | ||||
61 | |||||
62 | 1 | 12µs | 1 | 4µs | $^V eq 5.18.2 # spent 4µ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 1.93ms (154µs+1.78) within Config::FETCH which was called 66 times, avg 29µs/call:
# 40 times (76µs+54µs) by Path::IsDev::NegativeHeuristic::PerlINC::paths at line 48 of Path/IsDev/NegativeHeuristic/PerlINC.pm, avg 3µs/call
# 12 times (23µs+0s) by deprecate::__loaded_from_core at line 18 of deprecate.pm, avg 2µs/call
# 3 times (8µs+0s) by Pod::Usage::BEGIN@21 at line 40 of DynaLoader.pm, avg 3µs/call
# 2 times (5µs+0s) by English::BEGIN@192 at line 11 of Errno.pm, avg 3µs/call
# once (17µs+1.69ms) by File::ShareDir::ProjectDistDir::_path at line 47 of Path/Tiny.pm
# once (7µs+31µs) by locale::import at line 73 of locale.pm
# once (6µs+0s) by Lingua::EN::Inflect::BEGIN@5 at line 127 of Env.pm
# once (4µs+0s) by Module::Pluggable::Object::BEGIN@4 at line 394 of Cwd.pm
# once (2µs+0s) by Module::Pluggable::Object::BEGIN@4 at line 1115 of File/Find.pm
# once (2µs+0s) by Pod::Usage::BEGIN@21 at line 60 of DynaLoader.pm
# once (2µs+0s) by Pod::Usage::BEGIN@21 at line 63 of DynaLoader.pm
# once (2µs+0s) by Pod::Usage::BEGIN@21 at line 65 of DynaLoader.pm
# once (2µs+0s) by Pod::Usage::BEGIN@21 at line 64 of DynaLoader.pm | ||||
68 | 66 | 19µs | my($self, $key) = @_; | ||
69 | |||||
70 | # check for cached value (which may be undef so we use exists not defined) | ||||
71 | 66 | 193µs | 3 | 1.74ms | return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key); # spent 1.66ms making 1 call to Config::AUTOLOAD
# spent 86µs making 2 calls to Config::fetch_string, avg 43µs/call |
72 | } | ||||
73 | |||||
74 | # spent 2µs within Config::TIEHASH which was called:
# once (2µs+0s) by Errno::BEGIN@8 at line 87 | ||||
75 | 1 | 4µs | bless $_[1], $_[0]; | ||
76 | } | ||||
77 | |||||
78 | sub DESTROY { } | ||||
79 | |||||
80 | # spent 1.66ms (1.54+115µs) within Config::AUTOLOAD which was called:
# once (1.54ms+115µs) by Config::FETCH at line 71 | ||||
81 | 1 | 54µs | require 'Config_heavy.pl'; | ||
82 | 1 | 12µs | 2 | 8µs | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; # spent 7µs making 1 call to Config::launcher
# spent 900ns making 1 call to Config::CORE:match |
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 | 28µs | 1 | 2µs | tie %Config, 'Config', { # spent 2µs making 1 call to Config::TIEHASH |
88 | archlibexp => '/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/darwin-2level', | ||||
89 | archname => 'darwin-2level', | ||||
90 | cc => 'cc', | ||||
91 | d_readlink => 'define', | ||||
92 | d_symlink => 'define', | ||||
93 | dlext => 'bundle', | ||||
94 | dlsrc => 'dl_dlopen.xs', | ||||
95 | dont_use_nlink => undef, | ||||
96 | exe_ext => '', | ||||
97 | inc_version_list => ' ', | ||||
98 | intsize => '4', | ||||
99 | ldlibpthname => 'DYLD_LIBRARY_PATH', | ||||
100 | libpth => '/usr/local/lib /opt/local/lib /usr/lib', | ||||
101 | osname => 'darwin', | ||||
102 | osvers => '12.5.0', | ||||
103 | path_sep => ':', | ||||
104 | privlibexp => '/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2', | ||||
105 | scriptdir => '/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/bin', | ||||
106 | sitearchexp => '/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/darwin-2level', | ||||
107 | sitelibexp => '/Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2', | ||||
108 | so => 'dylib', | ||||
109 | useithreads => undef, | ||||
110 | usevendorprefix => undef, | ||||
111 | version => '5.18.2', | ||||
112 | }; |