← Index
Performance Profile   « block view • line view • sub view »
For ./awstats.pl
  Run on Wed Feb 11 19:11:27 2009
Reported on Thu Feb 12 02:07:45 2009

File/usr/lib/perl/5.8/Config.pm
Statements Executed40
Total Time0.000964 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
5527.3e-57.3e-5Config::FETCH
2227.3e-57.3e-5Config::import
00000Config::AUTOLOAD
00000Config::BEGIN
00000Config::DESTROY
00000Config::TIEHASH

LineStmts.Exclusive
Time
Avg.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
4package Config;
530.000248.0e-5use strict;
# spent 23µs making 1 call to strict::import
6# use warnings; Pulls in Carp
7# use vars pulls in Carp
814.0e-64.0e-6@Config::EXPORT = qw(%Config);
913.0e-63.0e-6@Config::EXPORT_OK = qw(myconfig config_sh config_vars config_re);
10
11# Need to stub all the functions to make code such as print Config::config_sh
12# keep working
13
14sub myconfig;
15sub config_sh;
16sub config_vars;
17sub config_re;
18
1911.9e-51.9e-5my %Export_Cache = map {($_ => 1)} (@Config::EXPORT, @Config::EXPORT_OK);
20
2112.0e-62.0e-6our %Config;
22
23# Define our own import method to avoid pulling in the full Exporter:
24
# spent 73µs within Config::import which was called 2 times, avg 36µs/call: # once (37µs+0) by DynaLoader::BEGIN at line 24 of /usr/lib/perl/5.8/DynaLoader.pm # once (36µs+0) at line 5 of /usr/share/perl/5.8/Time/Local.pm
sub import {
2524.0e-62.0e-6 my $pkg = shift;
2629.0e-64.5e-6 @_ = @Config::EXPORT unless @_;
27
2826.0e-63.0e-6 my @funcs = grep $_ ne '%Config', @_;
2924.0e-62.0e-6 my $export_Config = @funcs < @_ ? 1 : 0;
30
3130.000530.00018 no strict 'refs';
# spent 45µs making 1 call to strict::unimport
3224.0e-62.0e-6 my $callpkg = caller(0);
3326.0e-63.0e-6 foreach my $func (@funcs) {
34 die sprintf qq{"%s" is not exported by the %s module\n},
35 $func, __PACKAGE__ unless $Export_Cache{$func};
36 *{$callpkg.'::'.$func} = \&{$func};
37 }
38
3921.6e-58.0e-6 *{"$callpkg\::Config"} = \%Config if $export_Config;
4028.0e-64.0e-6 return;
41}
42
4311.0e-61.0e-6die "Perl lib version (v5.8.8) doesn't match executable version ($])"
44 unless $^V;
45
4617.0e-67.0e-6$^V eq v5.8.8
47 or die "Perl lib version (v5.8.8) doesn't match executable version (" .
48 sprintf("v%vd",$^V) . ")";
49
50
# spent 73µs within Config::FETCH which was called 5 times, avg 15µs/call: # once (19µs+0) at line 34 of /usr/share/perl/5.8/Time/Local.pm # once (18µs+0) at line 78 of /usr/lib/perl/5.8/DynaLoader.pm # once (13µs+0) at line 80 of /usr/lib/perl/5.8/DynaLoader.pm # once (12µs+0) at line 82 of /usr/lib/perl/5.8/DynaLoader.pm # once (11µs+0) at line 81 of /usr/lib/perl/5.8/DynaLoader.pm
sub FETCH {
5159.0e-61.8e-6 my($self, $key) = @_;
52
53 # check for cached value (which may be undef so we use exists not defined)
5452.5e-55.0e-6 return $self->{$key} if exists $self->{$key};
55
56 return $self->fetch_string($key);
57}
58sub TIEHASH {
5913.0e-63.0e-6 bless $_[1], $_[0];
60}
61
62sub DESTROY { }
63
64sub AUTOLOAD {
65 require 'Config_heavy.pl';
66 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
67 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
68}
69
70# tie returns the object, so the value returned to require will be true.
7116.3e-56.3e-5tie %Config, 'Config', {
72 archlibexp => '/usr/lib/perl/5.8',
73 archname => 'i486-linux-gnu-thread-multi',
74 cc => 'cc',
75 d_readlink => 'define',
76 d_symlink => 'define',
77 dlsrc => 'dl_dlopen.xs',
78 dont_use_nlink => undef,
79 exe_ext => '',
80 inc_version_list => '5.8.7 5.8.6 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0',
81 intsize => '4',
82 ldlibpthname => 'LD_LIBRARY_PATH',
83 libpth => '/usr/local/lib /lib /usr/lib',
84 osname => 'linux',
85 osvers => '2.6.18.3',
86 path_sep => ':',
87 privlibexp => '/usr/share/perl/5.8',
88 scriptdir => '/usr/bin',
89 sitearchexp => '/usr/local/lib/perl/5.8.8',
90 sitelibexp => '/usr/local/share/perl/5.8.8',
91 useithreads => 'define',
92 usevendorprefix => 'define',
93 version => '5.8.8',
94};