← Index
NYTProf Performance Profile   « line view »
For opt.pl
  Run on Tue May 12 15:32:29 2015
Reported on Tue May 12 15:32:30 2015

Filename/home/lbr/.plenv/versions/5.20.2/lib/perl5/5.20.2/x86_64-linux/Config.pm
StatementsExecuted 30 statements in 2.35ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.70ms1.73msConfig::::BEGIN@10Config::BEGIN@10
111340µs593µsConfig::::BEGIN@11Config::BEGIN@11
111276µs315µsConfig::::BEGIN@9Config::BEGIN@9
1118µs8µsConfig::::importConfig::import
1116µs18µsConfig::::BEGIN@47Config::BEGIN@47
3315µs5µsConfig::::FETCHConfig::FETCH
1111µs1µ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;
92243µs2331µs
# spent 315µs (276+39) within Config::BEGIN@9 which was called: # once (276µs+39µs) by lib::BEGIN@6 at line 9
use strict;
# spent 315µs making 1 call to Config::BEGIN@9 # spent 16µs making 1 call to strict::import
1021.63ms21.73ms
# spent 1.73ms (1.70+25µs) within Config::BEGIN@10 which was called: # once (1.70ms+25µs) by lib::BEGIN@6 at line 10
use warnings;
# spent 1.73ms making 1 call to Config::BEGIN@10 # spent 5µs making 1 call to warnings::import
112164µs2622µs
# spent 593µs (340+254) within Config::BEGIN@11 which was called: # once (340µs+254µs) by lib::BEGIN@6 at line 11
use vars '%Config', '$VERSION';
# spent 593µs making 1 call to Config::BEGIN@11 # spent 29µs making 1 call to vars::import
12
131400ns$VERSION = "5.020002";
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.
1813µ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
231600ns@Config::EXPORT = qw(%Config);
2412µ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 8µs within Config::import which was called: # once (8µs+0s) by lib::BEGIN@6 at line 6 of lib.pm
sub import {
411200ns shift;
4211µs @_ = @Config::EXPORT unless @_;
43
4411µs my @funcs = grep $_ ne '%Config', @_;
451900ns my $export_Config = @funcs < @_ ? 1 : 0;
46
472233µs229µs
# spent 18µs (6+11) within Config::BEGIN@47 which was called: # once (6µs+11µs) by lib::BEGIN@6 at line 47
no strict 'refs';
# spent 18µs making 1 call to Config::BEGIN@47 # spent 11µs making 1 call to strict::unimport
481500ns my $callpkg = caller(0);
491700ns 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
5512µs *{"$callpkg\::Config"} = \%Config if $export_Config;
5613µs return;
57}
58
59128µs14µsdie "$0: Perl lib version (5.20.2) doesn't match executable '$^X' version ($])"
# spent 4µs making 1 call to version::(bool
60 unless $^V;
61
6218µs13µs$^V eq 5.20.2
# spent 3µs making 1 call to version::(cmp
63 or die sprintf "%s: Perl lib version (5.20.2) doesn't match executable '$^X' version (%vd)", $0, $^V;
64
65
66
# spent 5µs within Config::FETCH which was called 3 times, avg 2µs/call: # once (3µs+0s) by main::BEGIN@1 at line 10 of lib.pm # once (1µs+0s) by main::BEGIN@1 at line 11 of lib.pm # once (1µs+0s) by main::BEGIN@1 at line 12 of lib.pm
sub FETCH {
6731µs my($self, $key) = @_;
68
69 # check for cached value (which may be undef so we use exists not defined)
7039µs return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
71}
72
73
# spent 1µs within Config::TIEHASH which was called: # once (1µs+0s) by lib::BEGIN@6 at line 86
sub TIEHASH {
7412µs bless $_[1], $_[0];
75}
76
77sub DESTROY { }
78
79sub AUTOLOAD {
80 require 'Config_heavy.pl';
81 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
82 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
83}
84
85# tie returns the object, so the value returned to require will be true.
86120µs11µstie %Config, 'Config', {
# spent 1µs making 1 call to Config::TIEHASH
87 archlibexp => '/home/lbr/.plenv/versions/5.20.2/lib/perl5/5.20.2/x86_64-linux',
88 archname => 'x86_64-linux',
89 cc => 'cc',
90 d_readlink => 'define',
91 d_symlink => 'define',
92 dlext => 'so',
93 dlsrc => 'dl_dlopen.xs',
94 dont_use_nlink => undef,
95 exe_ext => '',
96 inc_version_list => '',
97 intsize => '4',
98 ldlibpthname => 'LD_LIBRARY_PATH',
99 libpth => '/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.8/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',
100 osname => 'linux',
101 osvers => '3.18.0',
102 path_sep => ':',
103 privlibexp => '/home/lbr/.plenv/versions/5.20.2/lib/perl5/5.20.2',
104 scriptdir => '/home/lbr/.plenv/versions/5.20.2/bin',
105 sitearchexp => '/home/lbr/.plenv/versions/5.20.2/lib/perl5/site_perl/5.20.2/x86_64-linux',
106 sitelibexp => '/home/lbr/.plenv/versions/5.20.2/lib/perl5/site_perl/5.20.2',
107 so => 'so',
108 useithreads => undef,
109 usevendorprefix => undef,
110 version => '5.20.2',
111};