← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Sun Aug 5 15:24:32 2012
Reported on Sun Aug 5 15:24:53 2012

Filename/usr/lib/perl5/5.12.4/i686-linux/Config.pm
StatementsExecuted 40 statements in 3.55ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1119.45ms9.80msConfig::::AUTOLOADConfig::AUTOLOAD
751257µs10.5msConfig::::FETCHConfig::FETCH
111103µs128µsConfig::::BEGIN@9Config::BEGIN@9
11183µs83µsConfig::::importConfig::import
11171µs162µsConfig::::BEGIN@35Config::BEGIN@35
11134µs34µsConfig::::TIEHASHConfig::TIEHASH
0000s0sConfig::::DESTROYConfig::DESTROY
Call graph for these subroutines as a Graphviz dot language file.
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
8package Config;
93730µs2152µs
# spent 128µs (103+24) within Config::BEGIN@9 which was called: # once (103µs+24µs) by DynaLoader::BEGIN@25 at line 9
use strict;
# spent 128µs making 1 call to Config::BEGIN@9 # spent 24µs making 1 call to strict::import
10# use warnings; Pulls in Carp
11# use vars pulls in Carp
12110µs@Config::EXPORT = qw(%Config);
1318µ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
18sub myconfig;
19sub config_sh;
20sub config_vars;
21sub config_re;
22
23131µsmy %Export_Cache = map {($_ => 1)} (@Config::EXPORT, @Config::EXPORT_OK);
24
2512µsour %Config;
26
27# Define our own import method to avoid pulling in the full Exporter:
28
# spent 83µs within Config::import which was called: # once (83µs+0s) by DynaLoader::BEGIN@25 at line 25 of DynaLoader.pm
sub import {
29896µs my $pkg = shift;
30 @_ = @Config::EXPORT unless @_;
31
32 my @funcs = grep $_ ne '%Config', @_;
33 my $export_Config = @funcs < @_ ? 1 : 0;
34
3531.60ms2252µs
# spent 162µs (71+90) within Config::BEGIN@35 which was called: # once (71µs+90µs) by DynaLoader::BEGIN@25 at line 35
no strict 'refs';
# spent 162µs making 1 call to Config::BEGIN@35 # spent 90µ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
47197µs135µsdie "Perl lib version (5.12.4) doesn't match executable version ($])"
# spent 35µs making 1 call to version::(bool
48 unless $^V;
49
50167µs134µs$^V eq 5.12.4
# spent 34µs making 1 call to version::(cmp
51 or die "Perl lib version (5.12.4) doesn't match executable version (" .
52 sprintf("v%vd",$^V) . ")";
53
54
55
# spent 10.5ms (257µs+10.2) within Config::FETCH which was called 7 times, avg 1.50ms/call: # 3 times (178µs+10.2ms) by List::MoreUtils::BEGIN@6 at line 43 of DynaLoader.pm, avg 3.47ms/call # once (21µs+0s) by List::MoreUtils::BEGIN@6 at line 68 of DynaLoader.pm # once (20µs+0s) by List::MoreUtils::BEGIN@6 at line 65 of DynaLoader.pm # once (19µs+0s) by List::MoreUtils::BEGIN@6 at line 69 of DynaLoader.pm # once (19µs+0s) by List::MoreUtils::BEGIN@6 at line 70 of DynaLoader.pm
sub FETCH {
5616251µ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
61210.0ms return $self->fetch_string($key);
# spent 9.80ms making 1 call to Config::AUTOLOAD # spent 242µs making 1 call to Config::fetch_string
62}
63
# spent 34µs within Config::TIEHASH which was called: # once (34µs+0s) by DynaLoader::BEGIN@25 at line 76
sub TIEHASH {
64145µs bless $_[1], $_[0];
65}
66
67sub DESTROY { }
68
69
# spent 9.80ms (9.45+350µs) within Config::AUTOLOAD which was called: # once (9.45ms+350µs) by Config::FETCH at line 61
sub AUTOLOAD {
702441µs require 'Config_heavy.pl';
71246µs goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
# spent 37µs making 1 call to Config::launcher # spent 9µ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.
761176µs134µstie %Config, 'Config', {
# spent 34µs making 1 call to Config::TIEHASH
77 archlibexp => '/usr/lib/perl5/5.12.4/i686-linux',
78 archname => 'i686-linux',
79 cc => 'i686-pc-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.12.3/i686-linux 5.12.3 5.12.2/i686-linux 5.12.2 5.12.1/i686-linux 5.12.1 5.12.0/i686-linux 5.12.0 ',
86 intsize => '4',
87 ldlibpthname => 'LD_LIBRARY_PATH',
88 libpth => '/usr/local/lib /lib /usr/lib',
89 osname => 'linux',
90 osvers => '2.6.34-gentoo-r1_reiser4_unionfs',
91 path_sep => ':',
92 privlibexp => '/usr/lib/perl5/5.12.4',
93 scriptdir => '/usr/bin',
94 sitearchexp => '/usr/lib/perl5/site_perl/5.12.4/i686-linux',
95 sitelibexp => '/usr/lib/perl5/site_perl/5.12.4',
96 useithreads => undef,
97 usevendorprefix => 'define',
98 version => '5.12.4',
99};