← Index
NYTProf Performance Profile   « line view »
For Makefile.PL
  Run on Sun Mar 1 16:04:44 2015
Reported on Sun Mar 1 16:09:01 2015

FilenameC:/tmp64ng/perl/lib/Config.pm
StatementsExecuted 9380 statements in 62.4ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
465119731.2ms46.8msConfig::::FETCHConfig::FETCH
11115.6ms15.6msConfig::::BEGIN@10Config::BEGIN@10
1110s0sConfig::::AUTOLOADConfig::AUTOLOAD
1110s0sConfig::::BEGIN@11Config::BEGIN@11
1110s0sConfig::::BEGIN@47Config::BEGIN@47
1110s0sConfig::::BEGIN@9Config::BEGIN@9
0000s0sConfig::::DESTROYConfig::DESTROY
1110s0sConfig::::TIEHASHConfig::TIEHASH
7770s0sConfig::::importConfig::import
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;
920s20s
# spent 0s within Config::BEGIN@9 which was called: # once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 9
use strict;
# spent 0s making 1 call to Config::BEGIN@9 # spent 0s making 1 call to strict::import
10215.6ms215.6ms
# spent 15.6ms within Config::BEGIN@10 which was called: # once (15.6ms+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 10
use warnings;
# spent 15.6ms making 1 call to Config::BEGIN@10 # spent 0s making 1 call to warnings::import
1120s20s
# spent 0s within Config::BEGIN@11 which was called: # once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 11
use vars '%Config', '$VERSION';
# spent 0s making 1 call to Config::BEGIN@11 # spent 0s making 1 call to vars::import
12
1310s$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.
1810smy %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
2310s@Config::EXPORT = qw(%Config);
2410s@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 0s within Config::import which was called 7 times, avg 0s/call: # once (0s+0s) by main::BEGIN@2 at line 2 of Makefile.PL # once (0s+0s) by Win32::API::BEGIN@19 at line 19 of Win32/API.pm # once (0s+0s) by Win32::API::Struct::BEGIN@16 at line 16 of Win32/API/Struct.pm # once (0s+0s) by ExtUtils::Manifest::BEGIN@4 at line 4 of ExtUtils/Manifest.pm # once (0s+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm # once (0s+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm # once (0s+0s) by Win32::API::Type::BEGIN@23 at line 23 of Win32/API/Type.pm
sub import {
4170s shift;
4270s @_ = @Config::EXPORT unless @_;
43
4470s my @funcs = grep $_ ne '%Config', @_;
4570s my $export_Config = @funcs < @_ ? 1 : 0;
46
4720s20s
# spent 0s within Config::BEGIN@47 which was called: # once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 47
no strict 'refs';
# spent 0s making 1 call to Config::BEGIN@47 # spent 0s making 1 call to strict::unimport
4870s my $callpkg = caller(0);
4970s 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
5570s *{"$callpkg\::Config"} = \%Config if $export_Config;
5670s return;
57}
58
5910s10sdie "$0: Perl lib version (5.20.2) doesn't match executable '$^X' version ($])"
# spent 0s making 1 call to version::(bool
60 unless $^V;
61
6210s10s$^V eq 5.20.2
# spent 0s 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 46.8ms (31.2+15.6) within Config::FETCH which was called 4651 times, avg 10µs/call: # 1103 times (15.6ms+0s) by ExtUtils::MakeMaker::BEGIN@9 at line 10 of ExtUtils/MakeMaker/Config.pm, avg 14µs/call # 1103 times (0s+15.6ms) by Portable::Config::apply at line 60 of Portable/Config.pm, avg 14µs/call # 1103 times (0s+0s) by Portable::Config::apply at line 85 of Portable/Config.pm, avg 0s/call # 686 times (0s+0s) by Portable::Config::apply at line 86 of Portable/Config.pm, avg 0s/call # 634 times (15.6ms+0s) by Portable::Config::apply at line 87 of Portable/Config.pm, avg 25µs/call # 3 times (0s+0s) by Win32::API::BEGIN@62 at line 68 of Win32/API/Type.pm, avg 0s/call # 3 times (0s+0s) by Win32::API::BEGIN@20 at line 41 of DynaLoader.pm, avg 0s/call # 3 times (0s+0s) by ExtUtils::MakeMaker::flush at line 1206 of ExtUtils/MakeMaker.pm, avg 0s/call # 3 times (0s+0s) by main::RUNTIME at line 51 of Makefile.PL, avg 0s/call # once (0s+0s) by Win32::API::Type::BEGIN@161 at line 162 of Win32/API/Type.pm # once (0s+0s) by Win32::API::BEGIN@20 at line 61 of DynaLoader.pm # once (0s+0s) by Win32::API::BEGIN@20 at line 65 of DynaLoader.pm # once (0s+0s) by Win32::API::BEGIN@20 at line 66 of DynaLoader.pm # once (0s+0s) by Win32::API::BEGIN@20 at line 64 of DynaLoader.pm # once (0s+0s) by Win32::API::BEGIN@20 at line 50 of Win32/API.pm # once (0s+0s) by Win32::API::BEGIN@20 at line 49 of Win32/API.pm # once (0s+0s) by main::RUNTIME at line 66 of Makefile.PL # once (0s+0s) by main::RUNTIME at line 67 of Makefile.PL # once (0s+0s) by main::RUNTIME at line 59 of Makefile.PL
sub FETCH {
67465115.6ms my($self, $key) = @_;
68
69 # check for cached value (which may be undef so we use exists not defined)
70465131.2ms108015.6ms return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
# spent 15.6ms making 1080 calls to Config::fetch_string, avg 14µs/call
71}
72
73
# spent 0s within Config::TIEHASH which was called: # once (0s+0s) by ExtUtils::MakeMaker::Config::BEGIN@7 at line 86
sub TIEHASH {
7410s bless $_[1], $_[0];
75}
76
77sub DESTROY { }
78
79
# spent 0s within Config::AUTOLOAD which was called: # once (0s+0s) by Portable::Config::apply at line 60 of Portable/Config.pm
sub AUTOLOAD {
8010s require 'Config_heavy.pl';
8110s20s goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
# spent 0s making 1 call to Config::CORE:match # spent 0s making 1 call to Config::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.
8610s10stie %Config, 'Config', {
# spent 0s making 1 call to Config::TIEHASH
87 archlibexp => 'C:\\strawberry\\perl\\lib',
88 archname => 'MSWin32-x64-multi-thread',
89 cc => 'gcc',
90 d_readlink => undef,
91 d_symlink => undef,
92 dlext => 'xs.dll',
93 dlsrc => 'dl_win32.xs',
94 dont_use_nlink => undef,
95 exe_ext => '.exe',
96 inc_version_list => '',
97 intsize => '4',
98 ldlibpthname => '',
99 libpth => 'C:\\strawberry\\c\\lib C:\\strawberry\\c\\x86_64-w64-mingw32\\lib C:\\strawberry\\c\\lib\\gcc\\x86_64-w64-mingw32\\4.8.3',
100 osname => 'MSWin32',
101 osvers => '6.3',
102 path_sep => ';',
103 privlibexp => 'C:\\strawberry\\perl\\lib',
104 scriptdir => 'C:\\strawberry\\perl\\bin',
105 sitearchexp => 'C:\\strawberry\\perl\\site\\lib',
106 sitelibexp => 'C:\\strawberry\\perl\\site\\lib',
107 so => 'dll',
108 useithreads => 'define',
109 usevendorprefix => 'define',
110 version => '5.20.2',
111};
11210seval {
11310s require Portable;
11410s178.0ms Portable->import('Config');
# spent 78.0ms making 1 call to Portable::import
115};
116
11710s1;