← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:08 2015

Filename/usr/lib64/perl5/Config.pm
StatementsExecuted 47 statements in 1.14ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
33359µs59µsConfig::::importConfig::import
11122µs46µsConfig::::BEGIN@9Config::BEGIN@9
11118µs29µsConfig::::BEGIN@10Config::BEGIN@10
43216µs16µsConfig::::FETCHConfig::FETCH
11115µs36µsConfig::::BEGIN@45Config::BEGIN@45
11115µs39µsConfig::::BEGIN@11Config::BEGIN@11
1119µs9µsConfig::::TIEHASHConfig::TIEHASH
0000s0sConfig::::AUTOLOADConfig::AUTOLOAD
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;
9264µs271µs
# spent 46µs (22+24) within Config::BEGIN@9 which was called: # once (22µs+24µs) by main::BEGIN@6 at line 9
use strict;
# spent 46µs making 1 call to Config::BEGIN@9 # spent 24µs making 1 call to strict::import
10247µs239µs
# spent 29µs (18+10) within Config::BEGIN@10 which was called: # once (18µs+10µs) by main::BEGIN@6 at line 10
use warnings;
# spent 29µs making 1 call to Config::BEGIN@10 # spent 10µs making 1 call to warnings::import
112240µs264µs
# spent 39µs (15+25) within Config::BEGIN@11 which was called: # once (15µs+25µs) by main::BEGIN@6 at line 11
use vars '%Config';
# spent 39µs making 1 call to Config::BEGIN@11 # spent 25µs making 1 call to vars::import
12
13# Skip @Config::EXPORT because it only contains %Config, which we special
14# case below as it's not a function. @Config::EXPORT won't change in the
15# lifetime of Perl 5.
1617µsmy %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1,
17 config_re => 1, compile_date => 1, local_patches => 1,
18 bincompat_options => 1, non_bincompat_options => 1,
19 header_files => 1);
20
2112µs@Config::EXPORT = qw(%Config);
2215µs@Config::EXPORT_OK = keys %Export_Cache;
23
24# Need to stub all the functions to make code such as print Config::config_sh
25# keep working
26
27sub bincompat_options;
28sub compile_date;
29sub config_re;
30sub config_sh;
31sub config_vars;
32sub header_files;
33sub local_patches;
34sub myconfig;
35sub non_bincompat_options;
36
37# Define our own import method to avoid pulling in the full Exporter:
38
# spent 59µs within Config::import which was called 3 times, avg 20µs/call: # once (24µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm # once (18µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm # once (17µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
sub import {
393900ns shift;
4039µs @_ = @Config::EXPORT unless @_;
41
4237µs my @funcs = grep $_ ne '%Config', @_;
4334µs my $export_Config = @funcs < @_ ? 1 : 0;
44
452566µs256µs
# spent 36µs (15+20) within Config::BEGIN@45 which was called: # once (15µs+20µs) by main::BEGIN@6 at line 45
no strict 'refs';
# spent 36µs making 1 call to Config::BEGIN@45 # spent 20µs making 1 call to strict::unimport
4639µs my $callpkg = caller(0);
4735µs foreach my $func (@funcs) {
48 die qq{"$func" is not exported by the Config module\n}
49 unless $Export_Cache{$func};
50 *{$callpkg.'::'.$func} = \&{$func};
51 }
52
53315µs *{"$callpkg\::Config"} = \%Config if $export_Config;
54317µs return;
55}
56
57134µs114µsdie "Perl lib version (5.16.3) doesn't match executable '$0' version ($])"
# spent 14µs making 1 call to version::(bool
58 unless $^V;
59
60122µs112µs$^V eq 5.16.3
# spent 12µs making 1 call to version::(cmp
61 or die "Perl lib version (5.16.3) doesn't match executable '$0' version (" .
62 sprintf("v%vd",$^V) . ")";
63
64
65
# spent 16µs within Config::FETCH which was called 4 times, avg 4µs/call: # 2 times (7µs+0s) by Foswiki::Meta::BEGIN@117 at line 11 of Errno.pm, avg 4µs/call # once (5µs+0s) by main::BEGIN@6 at line 43 of setlib.cfg # once (3µs+0s) by main::BEGIN@6 at line 44 of setlib.cfg
sub FETCH {
6644µs my($self, $key) = @_;
67
68 # check for cached value (which may be undef so we use exists not defined)
69424µs return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
70}
71
72
# spent 9µs within Config::TIEHASH which was called: # once (9µs+0s) by main::BEGIN@6 at line 85
sub TIEHASH {
73113µs bless $_[1], $_[0];
74}
75
76sub DESTROY { }
77
78sub AUTOLOAD {
79 require 'Config_heavy.pl';
80 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
81 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
82}
83
84# tie returns the object, so the value returned to require will be true.
85148µs19µstie %Config, 'Config', {
# spent 9µs making 1 call to Config::TIEHASH
86 archlibexp => '/usr/lib64/perl5',
87 archname => 'x86_64-linux-thread-multi',
88 cc => 'gcc',
89 d_readlink => 'define',
90 d_symlink => 'define',
91 dlext => 'so',
92 dlsrc => 'dl_dlopen.xs',
93 dont_use_nlink => undef,
94 exe_ext => '',
95 inc_version_list => ' ',
96 intsize => '4',
97 ldlibpthname => 'LD_LIBRARY_PATH',
98 libpth => '/usr/local/lib64 /lib64 /usr/lib64',
99 osname => 'linux',
100 osvers => '2.6.32-220.17.1.el6.x86_64',
101 path_sep => ':',
102 privlibexp => '/usr/share/perl5',
103 scriptdir => '/usr/bin',
104 sitearchexp => '/usr/local/lib64/perl5',
105 sitelibexp => '/usr/local/share/perl5',
106 so => 'so',
107 useithreads => 'define',
108 usevendorprefix => 'define',
109 version => '5.16.3',
110};