← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:12:16 2013

Filename/usr/lib/perl/5.10/Config.pm
StatementsExecuted 72 statements in 1.40ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.89ms3.02msConfig::::AUTOLOADConfig::AUTOLOAD
1484110µs3.37msConfig::::FETCHConfig::FETCH
33399µs99µsConfig::::importConfig::import
21138µs38µsConfig::::CORE:substcontConfig::CORE:substcont (opcode)
11132µs41µsConfig::::BEGIN@9Config::BEGIN@9
11130µs30µsConfig::::CORE:substConfig::CORE:subst (opcode)
11124µs24µsConfig::::CORE:packConfig::CORE:pack (opcode)
11118µs46µsConfig::::BEGIN@35Config::BEGIN@35
11110µs10µsConfig::::TIEHASHConfig::TIEHASH
11110µs10µsConfig::::CORE:unpackConfig::CORE:unpack (opcode)
1112µs2µ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;
93252µs250µs
# spent 41µs (32+9) within Config::BEGIN@9 which was called: # once (32µs+9µs) by DynaLoader::BEGIN@24 at line 9
use strict;
# spent 41µs making 1 call to Config::BEGIN@9 # spent 9µs making 1 call to strict::import
10# use warnings; Pulls in Carp
11# use vars pulls in Carp
1213µs@Config::EXPORT = qw(%Config);
1311µ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
2318µsmy %Export_Cache = map {($_ => 1)} (@Config::EXPORT, @Config::EXPORT_OK);
24
251300nsour %Config;
26
27# Define our own import method to avoid pulling in the full Exporter:
28
# spent 99µs within Config::import which was called 3 times, avg 33µs/call: # once (63µs+0s) by Time::Local::BEGIN@5 at line 5 of Time/Local.pm # once (19µs+0s) by DynaLoader::BEGIN@24 at line 24 of DynaLoader.pm # once (17µs+0s) by Memoize::BEGIN@30 at line 30 of Memoize.pm
sub import {
29343µs my $pkg = shift;
30310µs @_ = @Config::EXPORT unless @_;
31
3238µs my @funcs = grep $_ ne '%Config', @_;
3334µs my $export_Config = @funcs < @_ ? 1 : 0;
34
353617µs274µs
# spent 46µs (18+28) within Config::BEGIN@35 which was called: # once (18µs+28µs) by DynaLoader::BEGIN@24 at line 35
no strict 'refs';
# spent 46µs making 1 call to Config::BEGIN@35 # spent 28µs making 1 call to strict::unimport
3634µs my $callpkg = caller(0);
3735µs 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
43315µs *{"$callpkg\::Config"} = \%Config if $export_Config;
44325µs return;
45}
46
47178µs153µsdie "Perl lib version (5.10.1) doesn't match executable version ($])"
# spent 53µs making 1 call to version::(bool
48 unless $^V;
49
50122µs112µs$^V eq 5.10.1
# spent 12µ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
# spent 3.37ms (110µs+3.26) within Config::FETCH which was called 14 times, avg 240µs/call: # 5 times (30µs+65µs) by Memoize::memoize at line 73 of Memoize.pm, avg 19µs/call # 3 times (44µs+3.14ms) by Cache::Memcached::BEGIN@14 at line 42 of DynaLoader.pm, avg 1.06ms/call # once (12µs+52µs) by LWP::UserAgent::BEGIN@12 at line 38 of Time/Local.pm # once (9µs+0s) by File::Path::BEGIN@6 at line 209 of Cwd.pm # once (6µs+0s) by Cache::Memcached::BEGIN@14 at line 64 of DynaLoader.pm # once (4µs+0s) by Cache::Memcached::BEGIN@14 at line 61 of DynaLoader.pm # once (3µs+0s) by Cache::Memcached::BEGIN@14 at line 65 of DynaLoader.pm # once (3µs+0s) by Cache::Memcached::BEGIN@14 at line 63 of DynaLoader.pm
sub FETCH {
551417µs my($self, $key) = @_;
56
57 # check for cached value (which may be undef so we use exists not defined)
581474µs return $self->{$key} if exists $self->{$key};
59
60437µs43.20ms return $self->fetch_string($key);
# spent 3.02ms making 1 call to Config::AUTOLOAD # spent 184µs making 3 calls to Config::fetch_string, avg 61µs/call
61}
62
# spent 10µs within Config::TIEHASH which was called: # once (10µs+0s) by DynaLoader::BEGIN@24 at line 75
sub TIEHASH {
63114µs bless $_[1], $_[0];
64}
65
66sub DESTROY { }
67
68
# spent 3.02ms (2.89+127µs) within Config::AUTOLOAD which was called: # once (2.89ms+127µs) by Config::FETCH at line 60
sub AUTOLOAD {
69185µs require 'Config_heavy.pl';
70120µs212µs goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
# spent 10µs making 1 call to Config::launcher # spent 2µs making 1 call to Config::CORE:match
71 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
72}
73
74# tie returns the object, so the value returned to require will be true.
75160µs110µstie %Config, 'Config', {
# spent 10µs making 1 call to Config::TIEHASH
76 archlibexp => '/usr/lib/perl/5.10',
77 archname => 'x86_64-linux-gnu-thread-multi',
78 cc => 'cc',
79 d_readlink => 'define',
80 d_symlink => 'define',
81 dlsrc => 'dl_dlopen.xs',
82 dont_use_nlink => undef,
83 exe_ext => '',
84 inc_version_list => '5.10.0',
85 intsize => '4',
86 ldlibpthname => 'LD_LIBRARY_PATH',
87 libpth => '/usr/local/lib /lib /usr/lib /lib64 /usr/lib64',
88 osname => 'linux',
89 osvers => '3.2.0-4-amd64',
90 path_sep => ':',
91 privlibexp => '/usr/share/perl/5.10',
92 scriptdir => '/usr/bin',
93 sitearchexp => '/usr/local/lib/perl/5.10.1',
94 sitelibexp => '/usr/local/share/perl/5.10.1',
95 useithreads => 'define',
96 usevendorprefix => 'define',
97 version => '5.10.1',
98};
 
# spent 2µs within Config::CORE:match which was called: # once (2µs+0s) by Config::AUTOLOAD at line 70
sub Config::CORE:match; # opcode
# spent 24µs within Config::CORE:pack which was called: # once (24µs+0s) by Config::AUTOLOAD at line 1197 of Config_heavy.pl
sub Config::CORE:pack; # opcode
# spent 30µs within Config::CORE:subst which was called: # once (30µs+0s) by Config::AUTOLOAD at line 1198 of Config_heavy.pl
sub Config::CORE:subst; # opcode
# spent 38µs within Config::CORE:substcont which was called 2 times, avg 19µs/call: # 2 times (38µs+0s) by Config::AUTOLOAD at line 1198 of Config_heavy.pl, avg 19µs/call
sub Config::CORE:substcont; # opcode
# spent 10µs within Config::CORE:unpack which was called: # once (10µs+0s) by Config::AUTOLOAD at line 1197 of Config_heavy.pl
sub Config::CORE:unpack; # opcode