← Index
Performance Profile   « block view • line view • sub view »
For /wise/base/deliv/dev/bin/getfix
  Run on Thu May 20 15:30:03 2010
Reported on Thu May 20 16:25:24 2010

File/opt/wise/lib/perl5/5.10.0/x86_64-linux-thread-multi/Config.pm
Statements Executed68
Total Time0.000745 seconds

Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111150.000140.00014Config::FETCH
4440.000100.00010Config::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.000196.2e-5use strict;
# spent 9µs making 1 call to strict::import
6# use warnings; Pulls in Carp
7# use vars pulls in Carp
812.0e-62.0e-6@Config::EXPORT = qw(%Config);
912.0e-62.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
1918.0e-68.0e-6my %Export_Cache = map {($_ => 1)} (@Config::EXPORT, @Config::EXPORT_OK);
20
2111.0e-61.0e-6our %Config;
22
23# Define our own import method to avoid pulling in the full Exporter:
24
# spent 103µs within Config::import which was called 4 times, avg 26µs/call: # once (31µs+0) at line 6 of /opt/wise/lib/perl5/5.10.0/x86_64-linux-thread-multi/lib.pm # once (28µs+0) by File::Copy::BEGIN at line 14 of /opt/wise/lib/perl5/5.10.0/File/Copy.pm # once (24µs+0) by DynaLoader::BEGIN at line 25 of /opt/wise/lib/perl5/5.10.0/x86_64-linux-thread-multi/DynaLoader.pm # once (20µs+0) at line 5 of /opt/wise/lib/perl5/5.10.0/Time/Local.pm
sub import {
25328.0e-52.5e-6 my $pkg = shift;
26 @_ = @Config::EXPORT unless @_;
27
28 my @funcs = grep $_ ne '%Config', @_;
29 my $export_Config = @funcs < @_ ? 1 : 0;
30
3130.000330.00011 no strict 'refs';
# spent 21µs making 1 call to strict::unimport
32 my $callpkg = caller(0);
33 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
39 *{"$callpkg\::Config"} = \%Config if $export_Config;
40 return;
41}
42
4311.0e-51.0e-5die "Perl lib version (5.10.0) doesn't match executable version ($])"
44 unless $^V;
45
4617.0e-67.0e-6$^V eq 5.10.0
47 or die "Perl lib version (5.10.0) doesn't match executable version (" .
48 sprintf("v%vd",$^V) . ")";
49
50
51sub FETCH {
52226.9e-53.1e-6 my($self, $key) = @_;
53
54 # check for cached value (which may be undef so we use exists not defined)
55 return $self->{$key} if exists $self->{$key};
56
57 return $self->fetch_string($key);
58}
59sub TIEHASH {
6015.0e-65.0e-6 bless $_[1], $_[0];
61}
62
63sub DESTROY { }
64
65sub AUTOLOAD {
66 require 'Config_heavy.pl';
67 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
68 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
69}
70
71# tie returns the object, so the value returned to require will be true.
7214.0e-54.0e-5tie %Config, 'Config', {
73 archlibexp => '/opt/wise/lib/perl5/5.10.0/x86_64-linux-thread-multi',
74 archname => 'x86_64-linux-thread-multi',
75 cc => 'gcc',
76 d_readlink => 'define',
77 d_symlink => 'define',
78 dlsrc => 'dl_dlopen.xs',
79 dont_use_nlink => undef,
80 exe_ext => '',
81 inc_version_list => ' ',
82 intsize => '4',
83 ldlibpthname => 'LD_LIBRARY_PATH',
84 libpth => '/usr/local/lib64 /lib64 /usr/lib64',
85 osname => 'linux',
86 osvers => '2.6.9-67.elsmp',
87 path_sep => ':',
88 privlibexp => '/opt/wise/lib/perl5/5.10.0',
89 scriptdir => '/opt/wise/bin',
90 sitearchexp => '/opt/wise/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi',
91 sitelibexp => '/opt/wise/lib/perl5/site_perl/5.10.0',
92 useithreads => 'define',
93 usevendorprefix => undef,
94 version => '5.10.0',
95};