← Index
NYTProf Performance Profile   « line view »
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:08 2016

Filename/usr/lib/perl/5.18/Config.pm
StatementsExecuted 92 statements in 1.04ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.73ms2.95msConfig::::AUTOLOADConfig::AUTOLOAD
55570µs70µsConfig::::importConfig::import
1712566µs3.08msConfig::::FETCHConfig::FETCH
11113µs27µsConfig::::BEGIN@9Config::BEGIN@9
1119µs14µsConfig::::BEGIN@10Config::BEGIN@10
1118µs20µsConfig::::BEGIN@47Config::BEGIN@47
1117µs37µsConfig::::BEGIN@11Config::BEGIN@11
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;
9229µs241µs
# spent 27µs (13+14) within Config::BEGIN@9 which was called: # once (13µs+14µs) by local::lib::BEGIN@11 at line 9
use strict;
# spent 27µs making 1 call to Config::BEGIN@9 # spent 14µs making 1 call to strict::import
10228µs219µs
# spent 14µs (9+5) within Config::BEGIN@10 which was called: # once (9µs+5µs) by local::lib::BEGIN@11 at line 10
use warnings;
# spent 14µs making 1 call to Config::BEGIN@10 # spent 5µs making 1 call to warnings::import
112165µs267µs
# spent 37µs (7+30) within Config::BEGIN@11 which was called: # once (7µs+30µs) by local::lib::BEGIN@11 at line 11
use vars '%Config', '$VERSION';
# spent 37µs making 1 call to Config::BEGIN@11 # spent 30µs making 1 call to vars::import
12
131700ns$VERSION = "5.018002";
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
231800ns@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 70µs within Config::import which was called 5 times, avg 14µs/call: # once (28µs+0s) by Storable::CAN_FLOCK at line 81 of Storable.pm # once (11µs+0s) by DynaLoader::BEGIN@21 at line 21 of DynaLoader.pm # once (10µs+0s) by local::lib::BEGIN@11 at line 11 of local/lib.pm # once (10µs+0s) by Moo::_Utils::BEGIN@17 at line 17 of Moo/_Utils.pm # once (10µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm
sub import {
4152µs shift;
4259µs @_ = @Config::EXPORT unless @_;
43
44510µs my @funcs = grep $_ ne '%Config', @_;
4554µs my $export_Config = @funcs < @_ ? 1 : 0;
46
472361µs232µs
# spent 20µs (8+12) within Config::BEGIN@47 which was called: # once (8µs+12µs) by local::lib::BEGIN@11 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
4857µs my $callpkg = caller(0);
4957µ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
55522µs *{"$callpkg\::Config"} = \%Config if $export_Config;
56530µs return;
57}
58
59136µs15µsdie "Perl lib version (5.18.2) doesn't match executable '$0' version ($])"
# spent 5µs making 1 call to version::(bool
60 unless $^V;
61
62110µs15µs$^V eq 5.18.2
# spent 5µs making 1 call to version::(cmp
63 or die "Perl lib version (5.18.2) doesn't match executable '$0' version (" .
64 sprintf("v%vd",$^V) . ")";
65
66
# spent 3.08ms (66µs+3.02) within Config::FETCH which was called 17 times, avg 181µs/call: # 3 times (6µs+0s) by base::import at line 39 of DynaLoader.pm, avg 2µs/call # 3 times (6µs+0s) by local::lib::_env_list_value at line 409 of local/lib.pm, avg 2µs/call # 2 times (9µs+0s) by File::Copy::copy at line 138 of File/Copy.pm, avg 5µs/call # once (29µs+3.02ms) by Storable::CAN_FLOCK at line 82 of Storable.pm # once (4µs+0s) by Moo::BEGIN@4 at line 113 of Moo/_Utils.pm # once (2µs+0s) by local::lib::setup_local_lib_for at line 239 of local/lib.pm # once (2µs+0s) by base::import at line 60 of DynaLoader.pm # once (2µs+0s) by base::import at line 61 of DynaLoader.pm # once (2µs+0s) by base::import at line 58 of DynaLoader.pm # once (2µs+0s) by local::lib::_env_list_value at line 410 of local/lib.pm # once (1µs+0s) by base::import at line 62 of DynaLoader.pm # once (1µs+0s) by local::lib::setup_local_lib_for at line 243 of local/lib.pm
sub FETCH {
67178µs my($self, $key) = @_;
68
69 # check for cached value (which may be undef so we use exists not defined)
701785µs12.95ms return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
# spent 2.95ms making 1 call to Config::AUTOLOAD
71}
72
73
# spent 2µs within Config::TIEHASH which was called: # once (2µs+0s) by local::lib::BEGIN@11 at line 86
sub TIEHASH {
7414µs bless $_[1], $_[0];
75}
76
77sub DESTROY { }
78
79
# spent 2.95ms (2.73+219µs) within Config::AUTOLOAD which was called: # once (2.73ms+219µs) by Config::FETCH at line 70
sub AUTOLOAD {
801159µs require 'Config_heavy.pl';
81123µs215µs goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
# spent 11µs making 1 call to Config::launcher # spent 4µs making 1 call to Config::CORE:match
82 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
83}
84
85# tie returns the object, so the value returned to require will be true.
86129µs12µstie %Config, 'Config', {
# spent 2µs making 1 call to Config::TIEHASH
87 archlibexp => '/usr/lib/perl/5.18',
88 archname => 'x86_64-linux-gnu-thread-multi',
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 => '5.18.1',
97 intsize => '4',
98 ldlibpthname => 'LD_LIBRARY_PATH',
99 libpth => '/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib',
100 osname => 'linux',
101 osvers => '3.13.0-79-generic',
102 path_sep => ':',
103 privlibexp => '/usr/share/perl/5.18',
104 scriptdir => '/usr/bin',
105 sitearchexp => '/usr/local/lib/perl/5.18.2',
106 sitelibexp => '/usr/local/share/perl/5.18.2',
107 so => 'so',
108 useithreads => 'define',
109 usevendorprefix => 'define',
110 version => '5.18.2',
111};