← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/bin/epoll_server.pl
  Run on Wed Jan 5 05:34:33 2011
Reported on Wed Jan 5 05:38:51 2011

File /usr/lib/perl5/5.10.1/i386-linux-thread-multi/Config.pm
Statements Executed 113
Statement Execution Time 3.57ms
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1117.69ms8.95msConfig::::AUTOLOADConfig::AUTOLOAD
888619µs619µsConfig::::importConfig::import
112468µs468µsConfig::::CORE:substConfig::CORE:subst (opcode)
212395µs395µsConfig::::CORE:substcontConfig::CORE:substcont (opcode)
15126309µs9.79msConfig::::FETCHConfig::FETCH
112282µs282µsConfig::::CORE:packConfig::CORE:pack (opcode)
111187µs202µsConfig::::BEGIN@9Config::BEGIN@9
11256µs56µsConfig::::CORE:unpackConfig::CORE:unpack (opcode)
11128µs77µsConfig::::BEGIN@35Config::BEGIN@35
11128µs28µsConfig::::TIEHASHConfig::TIEHASH
1125µs5µsConfig::::CORE:matchConfig::CORE:match (opcode)
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;
93479µs2217µs
# spent 202µs (187+15) within Config::BEGIN@9 which was called # once (187µs+15µs) by DynaLoader::BEGIN@25 at line 9
use strict;
# spent 202µs making 1 call to Config::BEGIN@9 # spent 15µs making 1 call to strict::import
10# use warnings; Pulls in Carp
11# use vars pulls in Carp
1217µs@Config::EXPORT = qw(%Config);
1314µs@Config::EXPORT_OK = qw(myconfig config_sh config_vars config_re);
14
15# Need to stub all the functions to make code such as print Config::config_sh
16# keep working
17
18sub myconfig;
19sub config_sh;
20sub config_vars;
21sub config_re;
22
23118µsmy %Export_Cache = map {($_ => 1)} (@Config::EXPORT, @Config::EXPORT_OK);
24
2511µsour %Config;
26
27# Define our own import method to avoid pulling in the full Exporter:
28
# spent 619µs within Config::import which was called 8 times, avg 77µs/call: # once (217µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm # once (105µs+0s) by Pod::Usage::BEGIN@445 at line 445 of Pod/Usage.pm # once (97µs+0s) by lib::BEGIN@6 at line 6 of lib.pm # once (48µs+0s) by DynaLoader::BEGIN@25 at line 25 of DynaLoader.pm # once (43µs+0s) by Errno::BEGIN@8 at line 8 of Errno.pm # once (43µs+0s) by File::Copy::BEGIN@14 at line 14 of File/Copy.pm # once (41µs+0s) by Mail::Mailer::BEGIN@16 at line 16 of Mail/Mailer.pm # once (25µs+0s) by Catalyst::Engine::HTTP::BEGIN@339 at line 339 of Catalyst/Engine/HTTP.pm
sub import {
2964686µs my $pkg = shift;
30 @_ = @Config::EXPORT unless @_;
31
32 my @funcs = grep $_ ne '%Config', @_;
33 my $export_Config = @funcs < @_ ? 1 : 0;
34
3531.27ms2126µs
# spent 77µs (28+49) within Config::BEGIN@35 which was called # once (28µs+49µs) by DynaLoader::BEGIN@25 at line 35
no strict 'refs';
# spent 77µs making 1 call to Config::BEGIN@35 # spent 49µs making 1 call to strict::unimport
36 my $callpkg = caller(0);
37 foreach my $func (@funcs) {
38 die sprintf qq{"%s" is not exported by the %s module\n},
39 $func, __PACKAGE__ unless $Export_Cache{$func};
40 *{$callpkg.'::'.$func} = \&{$func};
41 }
42
43 *{"$callpkg\::Config"} = \%Config if $export_Config;
44 return;
45}
46
47150µs122µsdie "Perl lib version (5.10.1) doesn't match executable version ($])"
# spent 22µs making 1 call to version::(bool
48 unless $^V;
49
50135µs119µs$^V eq 5.10.1
# spent 19µs making 1 call to version::(cmp
51 or die "Perl lib version (5.10.1) doesn't match executable version (" .
52 sprintf("v%vd",$^V) . ")";
53
54
55
# spent 9.79ms (309µs+9.48) within Config::FETCH which was called 15 times, avg 653µs/call: # 3 times (162µs+9.28ms) by base::import at line 43 of DynaLoader.pm, avg 3.15ms/call # 2 times (26µs+0s) by Catalyst::Engine::HTTP::BEGIN@7 at line 11 of Errno.pm, avg 13µs/call # once (27µs+199µs) by Catalyst::Engine::HTTP::BEGIN@8 at line 38 of Time/Local.pm # once (15µs+0s) by main::BEGIN@17 at line 10 of lib.pm # once (11µs+0s) by base::import at line 65 of DynaLoader.pm # once (11µs+0s) by main::BEGIN@17 at line 11 of lib.pm # once (11µs+0s) by main::BEGIN@17 at line 12 of lib.pm # once (10µs+0s) by base::import at line 68 of DynaLoader.pm # once (9µs+0s) by base::import at line 70 of DynaLoader.pm # once (9µs+0s) by File::Path::BEGIN@6 at line 378 of Cwd.pm # once (9µs+0s) by base::import at line 69 of DynaLoader.pm # once (8µs+0s) by Module::Pluggable::Object::BEGIN@4 at line 1337 of File/Find.pm
sub FETCH {
5633412µs my($self, $key) = @_;
57
58 # check for cached value (which may be undef so we use exists not defined)
59 return $self->{$key} if exists $self->{$key};
60
61 return $self->fetch_string($key);
# spent 8.95ms making 1 call to Config::AUTOLOAD # spent 366µs making 2 calls to Config::fetch_string, avg 183µs/call
62}
63
# spent 28µs within Config::TIEHASH which was called # once (28µs+0s) by DynaLoader::BEGIN@25 at line 76
sub TIEHASH {
64127µs bless $_[1], $_[0];
65}
66
67sub DESTROY { }
68
69
# spent 8.95ms (7.69+1.26) within Config::AUTOLOAD which was called # once (7.69ms+1.26ms) by Config::FETCH at line 61
sub AUTOLOAD {
702279µs require 'Config_heavy.pl';
71 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
# spent 23µs making 1 call to Config::launcher # spent 5µs making 1 call to Config::CORE:match
72 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
73}
74
75# tie returns the object, so the value returned to require will be true.
761300µs128µstie %Config, 'Config', {
# spent 28µs making 1 call to Config::TIEHASH
77 archlibexp => '/usr/lib/perl5/5.10.1/i386-linux-thread-multi',
78 archname => 'i386-linux-thread-multi',
79 cc => 'i586-mandriva-linux-gnu-gcc',
80 d_readlink => 'define',
81 d_symlink => 'define',
82 dlsrc => 'dl_dlopen.xs',
83 dont_use_nlink => undef,
84 exe_ext => '',
85 inc_version_list => '5.10.0 5.10.0/i386-linux-thread-multi 5.8.8 5.8.7 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 5.6.0',
86 intsize => '4',
87 ldlibpthname => 'LD_LIBRARY_PATH',
88 libpth => '/usr/local/lib /lib /usr/lib',
89 osname => 'linux',
90 osvers => '2.6.22.12-server-1mdv',
91 path_sep => ':',
92 privlibexp => '/usr/lib/perl5/5.10.1',
93 scriptdir => '/usr/bin',
94 sitearchexp => '/usr/lib/perl5/site_perl/5.10.1/i386-linux-thread-multi',
95 sitelibexp => '/usr/lib/perl5/site_perl/5.10.1',
96 useithreads => 'define',
97 usevendorprefix => 'define',
98 version => '5.10.1',
99};
# spent 5µs within Config::CORE:match which was called # once (5µs+0s) by Config::AUTOLOAD at line 71 of Config.pm
sub Config::CORE:match; # xsub
# spent 282µs within Config::CORE:pack which was called # once (282µs+0s) by Config::AUTOLOAD at line 1190 of Config_heavy.pl
sub Config::CORE:pack; # xsub
# spent 468µs within Config::CORE:subst which was called # once (468µs+0s) by Config::AUTOLOAD at line 1191 of Config_heavy.pl
sub Config::CORE:subst; # xsub
# spent 395µs within Config::CORE:substcont which was called 2 times, avg 198µs/call: # 2 times (395µs+0s) by Config::AUTOLOAD at line 1191 of Config_heavy.pl, avg 198µs/call
sub Config::CORE:substcont; # xsub
# spent 56µs within Config::CORE:unpack which was called # once (56µs+0s) by Config::AUTOLOAD at line 1190 of Config_heavy.pl
sub Config::CORE:unpack; # xsub