← Index
NYTProf Performance Profile   « line view »
For examples/Atom-timer.pl
  Run on Mon Aug 12 14:45:28 2013
Reported on Mon Aug 12 14:46:14 2013

Filename/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/5.18.0/darwin-thread-multi-2level/Config.pm
StatementsExecuted 52 statements in 615µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111362µs665µsConfig::::BEGIN@11Config::BEGIN@11
22216µs16µsConfig::::importConfig::import
108216µs16µsConfig::::FETCHConfig::FETCH
11110µs22µsConfig::::BEGIN@9Config::BEGIN@9
1119µs12µsConfig::::BEGIN@10Config::BEGIN@10
1116µs14µsConfig::::BEGIN@47Config::BEGIN@47
1112µs2µ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;
9224µs234µs
# spent 22µs (10+12) within Config::BEGIN@9 which was called: # once (10µs+12µs) by lib::BEGIN@6 at line 9
use strict;
# spent 22µs making 1 call to Config::BEGIN@9 # spent 12µs making 1 call to strict::import
10223µs216µs
# spent 12µs (9+3) within Config::BEGIN@10 which was called: # once (9µs+3µs) by lib::BEGIN@6 at line 10
use warnings;
# spent 12µs making 1 call to Config::BEGIN@10 # spent 3µs making 1 call to warnings::import
112177µs2697µs
# spent 665µs (362+303) within Config::BEGIN@11 which was called: # once (362µs+303µs) by lib::BEGIN@6 at line 11
use vars '%Config', '$VERSION';
# spent 665µs making 1 call to Config::BEGIN@11 # spent 32µs making 1 call to vars::import
12
131400ns$VERSION = "5.018000";
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.
1812µ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
231500ns@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 16µs within Config::import which was called 2 times, avg 8µs/call: # once (8µs+0s) by DynaLoader::BEGIN@22 at line 22 of DynaLoader.pm # once (8µs+0s) by lib::BEGIN@6 at line 6 of lib.pm
sub import {
412200ns shift;
4222µs @_ = @Config::EXPORT unless @_;
43
4422µs my @funcs = grep $_ ne '%Config', @_;
4521µs my $export_Config = @funcs < @_ ? 1 : 0;
46
472269µs223µs
# spent 14µs (6+9) within Config::BEGIN@47 which was called: # once (6µs+9µs) by lib::BEGIN@6 at line 47
no strict 'refs';
# spent 14µs making 1 call to Config::BEGIN@47 # spent 9µs making 1 call to strict::unimport
482900ns my $callpkg = caller(0);
4921µ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
5525µs *{"$callpkg\::Config"} = \%Config if $export_Config;
5627µs return;
57}
58
59130µs15µsdie "Perl lib version (5.18.0) doesn't match executable '$0' version ($])"
# spent 5µs making 1 call to version::(bool
60 unless $^V;
61
6218µs13µs$^V eq 5.18.0
# spent 3µs making 1 call to version::(cmp
63 or die "Perl lib version (5.18.0) doesn't match executable '$0' version (" .
64 sprintf("v%vd",$^V) . ")";
65
66
67
# spent 16µs within Config::FETCH which was called 10 times, avg 2µs/call: # 3 times (5µs+0s) by main::BEGIN@3 at line 40 of DynaLoader.pm, avg 2µs/call # once (3µs+0s) by main::BEGIN@2 at line 10 of lib.pm # once (2µs+0s) by main::BEGIN@2 at line 11 of lib.pm # once (2µs+0s) by main::BEGIN@2 at line 12 of lib.pm # once (1µs+0s) by main::BEGIN@3 at line 63 of DynaLoader.pm # once (1µs+0s) by main::BEGIN@3 at line 60 of DynaLoader.pm # once (1µs+0s) by main::BEGIN@3 at line 64 of DynaLoader.pm # once (1µs+0s) by main::BEGIN@3 at line 65 of DynaLoader.pm
sub FETCH {
68102µs my($self, $key) = @_;
69
70 # check for cached value (which may be undef so we use exists not defined)
711029µs return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
72}
73
74
# spent 2µs within Config::TIEHASH which was called: # once (2µs+0s) by lib::BEGIN@6 at line 87
sub TIEHASH {
7513µs bless $_[1], $_[0];
76}
77
78sub DESTROY { }
79
80sub AUTOLOAD {
81 require 'Config_heavy.pl';
82 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
83 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
84}
85
86# tie returns the object, so the value returned to require will be true.
87125µs12µstie %Config, 'Config', {
# spent 2µs making 1 call to Config::TIEHASH
88 archlibexp => '/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/5.18.0/darwin-thread-multi-2level',
89 archname => 'darwin-thread-multi-2level',
90 cc => 'cc',
91 d_readlink => 'define',
92 d_symlink => 'define',
93 dlext => 'bundle',
94 dlsrc => 'dl_dlopen.xs',
95 dont_use_nlink => undef,
96 exe_ext => '',
97 inc_version_list => ' ',
98 intsize => '4',
99 ldlibpthname => 'DYLD_LIBRARY_PATH',
100 libpth => '/usr/local/lib /opt/local/lib /usr/lib',
101 osname => 'darwin',
102 osvers => '12.4.0',
103 path_sep => ':',
104 privlibexp => '/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/5.18.0',
105 scriptdir => '/Users/dde/perl5/perlbrew/perls/5.18.0t/bin',
106 sitearchexp => '/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level',
107 sitelibexp => '/Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0',
108 so => 'dylib',
109 useithreads => 'define',
110 usevendorprefix => undef,
111 version => '5.18.0',
112};