← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:47 2015

Filename/usr/lib/x86_64-linux-gnu/perl/5.20/Config.pm
StatementsExecuted 86 statements in 1.44ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.95ms3.04msConfig::::AUTOLOADConfig::AUTOLOAD
229568µs3.15msConfig::::FETCHConfig::FETCH
33334µs34µsConfig::::importConfig::import
22222µs22µsConfig::::CORE:matchConfig::CORE:match (opcode)
21117µs17µsConfig::::CORE:substcontConfig::CORE:substcont (opcode)
11116µs32µsConfig::::BEGIN@9Config::BEGIN@9
1119µs15µsConfig::::BEGIN@10Config::BEGIN@10
1118µs8µsConfig::::CORE:regcompConfig::CORE:regcomp (opcode)
1118µs20µsConfig::::BEGIN@47Config::BEGIN@47
1117µs42µsConfig::::BEGIN@11Config::BEGIN@11
1115µs5µsConfig::::CORE:substConfig::CORE:subst (opcode)
1113µs3µsConfig::::CORE:unpackConfig::CORE:unpack (opcode)
1113µs3µsConfig::::CORE:packConfig::CORE:pack (opcode)
1112µs2µ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;
9237µs249µs
# spent 32µs (16+17) within Config::BEGIN@9 which was called: # once (16µs+17µs) by DynaLoader::BEGIN@21 at line 9
use strict;
# spent 32µs making 1 call to Config::BEGIN@9 # spent 17µs making 1 call to strict::import
10237µs222µs
# spent 15µs (9+6) within Config::BEGIN@10 which was called: # once (9µs+6µs) by DynaLoader::BEGIN@21 at line 10
use warnings;
# spent 15µs making 1 call to Config::BEGIN@10 # spent 6µs making 1 call to warnings::import
112194µs277µs
# spent 42µs (7+35) within Config::BEGIN@11 which was called: # once (7µs+35µs) by DynaLoader::BEGIN@21 at line 11
use vars '%Config', '$VERSION';
# spent 42µs making 1 call to Config::BEGIN@11 # spent 35µs making 1 call to vars::import
12
131600ns$VERSION = "5.020001";
14
15# Skip @Config::EXPORT because it only contains %Config, which we special
16# case below as it's not a function. @Config::EXPORT won't change in the
17# lifetime of Perl 5.
1814µsmy %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1,
19 config_re => 1, compile_date => 1, local_patches => 1,
20 bincompat_options => 1, non_bincompat_options => 1,
21 header_files => 1);
22
231900ns@Config::EXPORT = qw(%Config);
2413µs@Config::EXPORT_OK = keys %Export_Cache;
25
26# Need to stub all the functions to make code such as print Config::config_sh
27# keep working
28
29sub bincompat_options;
30sub compile_date;
31sub config_re;
32sub config_sh;
33sub config_vars;
34sub header_files;
35sub local_patches;
36sub myconfig;
37sub non_bincompat_options;
38
39# Define our own import method to avoid pulling in the full Exporter:
40
# spent 34µs within Config::import which was called 3 times, avg 11µs/call: # once (12µs+0s) by DynaLoader::BEGIN@21 at line 21 of DynaLoader.pm # once (11µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm # once (10µs+0s) by Memoize::BEGIN@28 at line 28 of Memoize.pm
sub import {
413800ns shift;
4235µs @_ = @Config::EXPORT unless @_;
43
4435µs my @funcs = grep $_ ne '%Config', @_;
4533µs my $export_Config = @funcs < @_ ? 1 : 0;
46
472415µs232µs
# spent 20µs (8+12) within Config::BEGIN@47 which was called: # once (8µs+12µs) by DynaLoader::BEGIN@21 at line 47
no strict 'refs';
# spent 20µs making 1 call to Config::BEGIN@47 # spent 12µs making 1 call to strict::unimport
4832µs my $callpkg = caller(0);
4933µs foreach my $func (@funcs) {
50 die qq{"$func" is not exported by the Config module\n}
51 unless $Export_Cache{$func};
52 *{$callpkg.'::'.$func} = \&{$func};
53 }
54
55310µs *{"$callpkg\::Config"} = \%Config if $export_Config;
56313µs return;
57}
58
59140µs16µsdie "$0: Perl lib version (5.20.1) doesn't match executable '$^X' version ($])"
# spent 6µs making 1 call to version::(bool
60 unless $^V;
61
62112µs15µs$^V eq 5.20.1
# spent 5µs making 1 call to version::(cmp
63 or die sprintf "%s: Perl lib version (5.20.1) doesn't match executable '$^X' version (%vd)", $0, $^V;
64
65
# spent 3.15ms (68µs+3.09) within Config::FETCH which was called 22 times, avg 143µs/call: # 12 times (29µs+0s) by deprecate::__loaded_from_core at line 35 of deprecate.pm, avg 2µs/call # 3 times (8µs+0s) by DBI::BEGIN@170 at line 40 of DynaLoader.pm, avg 3µs/call # once (16µs+3.09ms) by Memoize::memoize at line 71 of Memoize.pm # once (4µs+0s) by Module::Metadata::BEGIN@29 at line 226 of Cwd.pm # once (3µs+0s) by DBI::BEGIN@170 at line 59 of DynaLoader.pm # once (2µs+0s) by Module::Metadata::BEGIN@29 at line 1117 of File/Find.pm # once (2µs+0s) by DBI::BEGIN@170 at line 61 of DynaLoader.pm # once (2µs+0s) by DBI::BEGIN@170 at line 63 of DynaLoader.pm # once (2µs+0s) by DBI::BEGIN@170 at line 62 of DynaLoader.pm
sub FETCH {
66229µs my($self, $key) = @_;
67
68 # check for cached value (which may be undef so we use exists not defined)
692285µs13.04ms return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
# spent 3.04ms making 1 call to Config::AUTOLOAD
70}
71
72
# spent 2µs within Config::TIEHASH which was called: # once (2µs+0s) by DynaLoader::BEGIN@21 at line 85
sub TIEHASH {
7314µs bless $_[1], $_[0];
74}
75
76sub DESTROY { }
77
78
# spent 3.04ms (2.95+89µs) within Config::AUTOLOAD which was called: # once (2.95ms+89µs) by Config::FETCH at line 69
sub AUTOLOAD {
791521µs require 'Config_heavy.pl';
80110µs27µs goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
# spent 6µs making 1 call to Config::launcher # spent 1µs making 1 call to Config::CORE:match
81 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
82}
83
84# tie returns the object, so the value returned to require will be true.
85128µs12µstie %Config, 'Config', {
# spent 2µs making 1 call to Config::TIEHASH
86 archlibexp => '/usr/lib/x86_64-linux-gnu/perl/5.20',
87 archname => 'x86_64-linux-gnu-thread-multi',
88 cc => 'cc',
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 => '5.20.0',
96 intsize => '4',
97 ldlibpthname => 'LD_LIBRARY_PATH',
98 libpth => '/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib',
99 osname => 'linux',
100 osvers => '3.2.0-4-amd64',
101 path_sep => ':',
102 privlibexp => '/usr/share/perl/5.20',
103 scriptdir => '/usr/bin',
104 sitearchexp => '/usr/local/lib/x86_64-linux-gnu/perl/5.20.1',
105 sitelibexp => '/usr/local/share/perl/5.20.1',
106 so => 'so',
107 useithreads => 'define',
108 usevendorprefix => 'define',
109 version => '5.20.1',
110};
 
# spent 22µs within Config::CORE:match which was called 2 times, avg 11µs/call: # once (21µs+0s) by Config::fetch_string at line 1315 of Config_heavy.pl # once (1µs+0s) by Config::AUTOLOAD at line 80
sub Config::CORE:match; # opcode
# spent 3µs within Config::CORE:pack which was called: # once (3µs+0s) by Config::AUTOLOAD at line 1293 of Config_heavy.pl
sub Config::CORE:pack; # opcode
# spent 8µs within Config::CORE:regcomp which was called: # once (8µs+0s) by Config::fetch_string at line 1315 of Config_heavy.pl
sub Config::CORE:regcomp; # opcode
# spent 5µs within Config::CORE:subst which was called: # once (5µs+0s) by Config::AUTOLOAD at line 1294 of Config_heavy.pl
sub Config::CORE:subst; # opcode
# spent 17µs within Config::CORE:substcont which was called 2 times, avg 8µs/call: # 2 times (17µs+0s) by Config::AUTOLOAD at line 1294 of Config_heavy.pl, avg 8µs/call
sub Config::CORE:substcont; # opcode
# spent 3µs within Config::CORE:unpack which was called: # once (3µs+0s) by Config::AUTOLOAD at line 1293 of Config_heavy.pl
sub Config::CORE:unpack; # opcode