| File | /usr/lib/perl5/5.10.1/i386-linux-thread-multi/Config.pm |
| Statements Executed | 113 |
| Statement Execution Time | 3.57ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 7.69ms | 8.95ms | Config::AUTOLOAD |
| 8 | 8 | 8 | 619µs | 619µs | Config::import |
| 1 | 1 | 2 | 468µs | 468µs | Config::CORE:subst (opcode) |
| 2 | 1 | 2 | 395µs | 395µs | Config::CORE:substcont (opcode) |
| 15 | 12 | 6 | 309µs | 9.79ms | Config::FETCH |
| 1 | 1 | 2 | 282µs | 282µs | Config::CORE:pack (opcode) |
| 1 | 1 | 1 | 187µs | 202µs | Config::BEGIN@9 |
| 1 | 1 | 2 | 56µs | 56µs | Config::CORE:unpack (opcode) |
| 1 | 1 | 1 | 28µs | 77µs | Config::BEGIN@35 |
| 1 | 1 | 1 | 28µs | 28µs | Config::TIEHASH |
| 1 | 1 | 2 | 5µs | 5µs | Config::CORE:match (opcode) |
| 0 | 0 | 0 | 0s | 0s | Config::DESTROY |
| 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 | 3 | 479µs | 2 | 217µs | # spent 202µs (187+15) within Config::BEGIN@9 which was called
# once (187µs+15µs) by DynaLoader::BEGIN@25 at line 9 # spent 202µs making 1 call to Config::BEGIN@9
# spent 15µs making 1 call to strict::import |
| 10 | # use warnings; Pulls in Carp | ||||
| 11 | # use vars pulls in Carp | ||||
| 12 | 1 | 7µs | @Config::EXPORT = qw(%Config); | ||
| 13 | 1 | 4µs | @Config::EXPORT_OK = qw(myconfig config_sh config_vars config_re); | ||
| 14 | |||||
| 15 | # Need to stub all the functions to make code such as print Config::config_sh | ||||
| 16 | # keep working | ||||
| 17 | |||||
| 18 | sub myconfig; | ||||
| 19 | sub config_sh; | ||||
| 20 | sub config_vars; | ||||
| 21 | sub config_re; | ||||
| 22 | |||||
| 23 | 1 | 18µs | my %Export_Cache = map {($_ => 1)} (@Config::EXPORT, @Config::EXPORT_OK); | ||
| 24 | |||||
| 25 | 1 | 1µs | our %Config; | ||
| 26 | |||||
| 27 | # Define our own import method to avoid pulling in the full Exporter: | ||||
| 28 | # spent 619µs within Config::import which was called 8 times, avg 77µs/call:
# once (217µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm
# once (105µs+0s) by Pod::Usage::BEGIN@445 at line 445 of Pod/Usage.pm
# once (97µs+0s) by lib::BEGIN@6 at line 6 of lib.pm
# once (48µs+0s) by DynaLoader::BEGIN@25 at line 25 of DynaLoader.pm
# once (43µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm
# once (43µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
# once (41µs+0s) by Mail::Mailer::BEGIN@16 at line 16 of Mail/Mailer.pm
# once (25µs+0s) by Catalyst::Engine::HTTP::BEGIN@339 at line 339 of Catalyst/Engine/HTTP.pm | ||||
| 29 | 64 | 686µs | my $pkg = shift; | ||
| 30 | @_ = @Config::EXPORT unless @_; | ||||
| 31 | |||||
| 32 | my @funcs = grep $_ ne '%Config', @_; | ||||
| 33 | my $export_Config = @funcs < @_ ? 1 : 0; | ||||
| 34 | |||||
| 35 | 3 | 1.27ms | 2 | 126µs | # spent 77µs (28+49) within Config::BEGIN@35 which was called
# once (28µs+49µs) by DynaLoader::BEGIN@25 at line 35 # spent 77µs making 1 call to Config::BEGIN@35
# spent 49µs making 1 call to strict::unimport |
| 36 | my $callpkg = caller(0); | ||||
| 37 | foreach my $func (@funcs) { | ||||
| 38 | die sprintf qq{"%s" is not exported by the %s module\n}, | ||||
| 39 | $func, __PACKAGE__ unless $Export_Cache{$func}; | ||||
| 40 | *{$callpkg.'::'.$func} = \&{$func}; | ||||
| 41 | } | ||||
| 42 | |||||
| 43 | *{"$callpkg\::Config"} = \%Config if $export_Config; | ||||
| 44 | return; | ||||
| 45 | } | ||||
| 46 | |||||
| 47 | 1 | 50µs | 1 | 22µs | die "Perl lib version (5.10.1) doesn't match executable version ($])" # spent 22µs making 1 call to version::(bool |
| 48 | unless $^V; | ||||
| 49 | |||||
| 50 | 1 | 35µs | 1 | 19µs | $^V eq 5.10.1 # spent 19µs making 1 call to version::(cmp |
| 51 | or die "Perl lib version (5.10.1) doesn't match executable version (" . | ||||
| 52 | sprintf("v%vd",$^V) . ")"; | ||||
| 53 | |||||
| 54 | |||||
| 55 | # spent 9.79ms (309µs+9.48) within Config::FETCH which was called 15 times, avg 653µs/call:
# 3 times (162µs+9.28ms) by base::import at line 43 of DynaLoader.pm, avg 3.15ms/call
# 2 times (26µs+0s) by Catalyst::Engine::HTTP::BEGIN@7 at line 11 of Errno.pm, avg 13µs/call
# once (27µs+199µs) by Catalyst::Engine::HTTP::BEGIN@8 at line 38 of Time/Local.pm
# once (15µs+0s) by main::BEGIN@17 at line 10 of lib.pm
# once (11µs+0s) by base::import at line 65 of DynaLoader.pm
# once (11µs+0s) by main::BEGIN@17 at line 11 of lib.pm
# once (11µs+0s) by main::BEGIN@17 at line 12 of lib.pm
# once (10µs+0s) by base::import at line 68 of DynaLoader.pm
# once (9µs+0s) by base::import at line 70 of DynaLoader.pm
# once (9µs+0s) by File::Path::BEGIN@6 at line 378 of Cwd.pm
# once (9µs+0s) by base::import at line 69 of DynaLoader.pm
# once (8µs+0s) by Module::Pluggable::Object::BEGIN@4 at line 1337 of File/Find.pm | ||||
| 56 | 33 | 412µs | my($self, $key) = @_; | ||
| 57 | |||||
| 58 | # check for cached value (which may be undef so we use exists not defined) | ||||
| 59 | return $self->{$key} if exists $self->{$key}; | ||||
| 60 | |||||
| 61 | return $self->fetch_string($key); # spent 8.95ms making 1 call to Config::AUTOLOAD
# spent 366µs making 2 calls to Config::fetch_string, avg 183µs/call | ||||
| 62 | } | ||||
| 63 | # spent 28µs within Config::TIEHASH which was called
# once (28µs+0s) by DynaLoader::BEGIN@25 at line 76 | ||||
| 64 | 1 | 27µs | bless $_[1], $_[0]; | ||
| 65 | } | ||||
| 66 | |||||
| 67 | sub DESTROY { } | ||||
| 68 | |||||
| 69 | # spent 8.95ms (7.69+1.26) within Config::AUTOLOAD which was called
# once (7.69ms+1.26ms) by Config::FETCH at line 61 | ||||
| 70 | 2 | 279µs | require 'Config_heavy.pl'; | ||
| 71 | goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; # spent 23µs making 1 call to Config::launcher
# spent 5µs making 1 call to Config::CORE:match | ||||
| 72 | die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; | ||||
| 73 | } | ||||
| 74 | |||||
| 75 | # tie returns the object, so the value returned to require will be true. | ||||
| 76 | 1 | 300µs | 1 | 28µs | tie %Config, 'Config', { # spent 28µs making 1 call to Config::TIEHASH |
| 77 | archlibexp => '/usr/lib/perl5/5.10.1/i386-linux-thread-multi', | ||||
| 78 | archname => 'i386-linux-thread-multi', | ||||
| 79 | cc => 'i586-mandriva-linux-gnu-gcc', | ||||
| 80 | d_readlink => 'define', | ||||
| 81 | d_symlink => 'define', | ||||
| 82 | dlsrc => 'dl_dlopen.xs', | ||||
| 83 | dont_use_nlink => undef, | ||||
| 84 | exe_ext => '', | ||||
| 85 | inc_version_list => '5.10.0 5.10.0/i386-linux-thread-multi 5.8.8 5.8.7 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0', | ||||
| 86 | intsize => '4', | ||||
| 87 | ldlibpthname => 'LD_LIBRARY_PATH', | ||||
| 88 | libpth => '/usr/local/lib /lib /usr/lib', | ||||
| 89 | osname => 'linux', | ||||
| 90 | osvers => '2.6.22.12-server-1mdv', | ||||
| 91 | path_sep => ':', | ||||
| 92 | privlibexp => '/usr/lib/perl5/5.10.1', | ||||
| 93 | scriptdir => '/usr/bin', | ||||
| 94 | sitearchexp => '/usr/lib/perl5/site_perl/5.10.1/i386-linux-thread-multi', | ||||
| 95 | sitelibexp => '/usr/lib/perl5/site_perl/5.10.1', | ||||
| 96 | useithreads => 'define', | ||||
| 97 | usevendorprefix => 'define', | ||||
| 98 | version => '5.10.1', | ||||
| 99 | }; | ||||
# spent 5µs within Config::CORE:match which was called
# once (5µs+0s) by Config::AUTOLOAD at line 71 of Config.pm | |||||
# spent 282µs within Config::CORE:pack which was called
# once (282µs+0s) by Config::AUTOLOAD at line 1190 of Config_heavy.pl | |||||
# spent 468µs within Config::CORE:subst which was called
# once (468µs+0s) by Config::AUTOLOAD at line 1191 of Config_heavy.pl | |||||
# spent 395µs within Config::CORE:substcont which was called 2 times, avg 198µs/call:
# 2 times (395µs+0s) by Config::AUTOLOAD at line 1191 of Config_heavy.pl, avg 198µs/call | |||||
# spent 56µs within Config::CORE:unpack which was called
# once (56µs+0s) by Config::AUTOLOAD at line 1190 of Config_heavy.pl |