← Index
NYTProf Performance Profile   « line view »
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:31:39 2016

Filename/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
StatementsExecuted 64 statements in 253µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111159µs20.5msTemplate::Document::::__ANON__[:99]Template::Document::__ANON__[:99]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 20.5ms (159µs+20.4) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc:99] which was called: # once (159µs+20.4ms) by Template::Document::process at line 163 of Template/Document.pm
# USE
229µs232µs$stash->set('Koha',
# spent 29µs making 1 call to Template::Context::plugin # spent 3µs making 1 call to Template::Stash::XS::set
3113µs21.28ms $context->plugin('Koha'));
# spent 1.28ms making 1 call to Template::Context::plugin # spent 8µs making 1 call to Template::Stash::XS::set
4212µs22.19ms$output .= "\n";
# spent 2.19ms making 1 call to Template::Context::plugin # spent 6µs making 1 call to Template::Stash::XS::set
5417µs38µs#line 2 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 8µs making 3 calls to Template::Stash::XS::get, avg 3µs/call
632µs# USE
726µs12µs$stash->set('AudioAlerts',
# spent 2µs making 1 call to Template::Stash::XS::get
826µs12µs $context->plugin('AudioAlerts'));
# spent 2µs making 1 call to Template::Stash::XS::get
936µs12µs$output .= "\n";
# spent 2µs making 1 call to Template::Stash::XS::get
1027µs12µs#line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
1126µs10s# USE
# spent 5.40ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 5.40ms
12212µs216µs$stash->set('String',
# spent 12µs making 1 call to Template::Stash::XS::get # spent 4µs making 1 call to Template::Stash::undefined
13 $context->plugin('String'));
1417µs13µs$output .= "\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<link rel=\"shortcut icon\" href=\"";
# spent 3µs making 1 call to Template::Stash::XS::get
1526µs12µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
1636µs12µsif (($stash->get('IntranetFavicon'))) {
# spent 2µs making 1 call to Template::Stash::XS::get
1725µs12µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
1827µs12µs$output .= $stash->get('IntranetFavicon');
# spent 2µs making 1 call to Template::Stash::XS::get
1926µs12µs}
# spent 2µs making 1 call to Template::Stash::XS::get
2025µs12µselse {
# spent 2µs making 1 call to Template::Stash::XS::get
211300ns#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
22$output .= $stash->get('interface');
23$output .= "/";
2416µs28µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 6µs making 1 call to Template::Stash::XS::get # spent 1µs making 1 call to Template::Stash::undefined
2515µs12µs$output .= $stash->get('theme');
# spent 2µs making 1 call to Template::Stash::XS::get
26$output .= "/img/favicon.ico";
271500ns}
2815µs12µs
# spent 2µs making 1 call to Template::Stash::XS::get
292800ns$output .= "\" type=\"image/x-icon\" />\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
3016µs10s#line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 1.54ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 1.54ms
311600ns$output .= $stash->get('interface');
32$output .= "/lib/jquery/jquery-ui.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
33#line 8 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
34$output .= $stash->get('interface');
35$output .= "/lib/bootstrap/bootstrap.min.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
36#line 9 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
3717µs13µs$output .= $stash->get('interface');
# spent 3µs making 1 call to Template::Stash::XS::get
381500ns$output .= "/lib/font-awesome/css/font-awesome.min.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"";
39#line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
40$output .= $stash->get('themelang');
41$output .= "/css/print.css\" />\n";
42#line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
43$output .= $context->include('intranetstylesheet.inc');
44$output .= "\n";
45#line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
46if (($stash->get('bidi'))) {
47$output .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
48#line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
49$output .= $stash->get('themelang');
50$output .= "/css/right-to-left.css\" />";
51}
52
53$output .= "\n\n<script type=\"text/javascript\" src=\"";
54#line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
55$output .= $stash->get('interface');
5615µs12µs$output .= "/lib/jquery/jquery.js\"></script>\n<script type=\"text/javascript\" src=\"";
# spent 2µs making 1 call to Template::Stash::XS::get
5726µs12µs#line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
5811µs$output .= $stash->get('interface');
59$output .= "/lib/jquery/jquery-ui.js\"></script>\n<script type=\"text/javascript\" src=\"";
601400ns#line 16 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
61$output .= $stash->get('interface');
62$output .= "/lib/shortcut/shortcut.js\"></script>\n<script type=\"text/javascript\" src=\"";
63#line 17 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
641400ns$output .= $stash->get('interface');
65$output .= "/lib/jquery/plugins/jquery.cookie.min.js\"></script>\n<script type=\"text/javascript\" src=\"";
6615µs12µs#line 18 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
67$output .= $stash->get('interface');
68$output .= "/lib/jquery/plugins/jquery.highlight-3.js\"></script>\n<script type=\"text/javascript\" src=\"";
69#line 19 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
70$output .= $stash->get('interface');
71$output .= "/lib/bootstrap/bootstrap.min.js\"></script>\n<script type=\"text/javascript\" src=\"";
72#line 20 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
73$output .= $stash->get('interface');
74$output .= "/lib/jquery/plugins/jquery.validate.min.js\"></script>\n\n";
75#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
76if (($stash->get('login'))) {
77$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
78#line 23 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
79$output .= $stash->get('themelang');
80$output .= "/css/login.css\" />\n";
81}
82
83$output .= "\n";
84#line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
85if (($stash->get('IntranetUserCSS'))) {
86$output .= "<style type=\"text/css\">";
87239µs415.7ms#line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
# spent 7.86ms making 2 calls to Template::Stash::XS::get, avg 3.93ms/call # spent 7.82ms making 1 call to Koha::Template::Plugin::Koha::Preference # spent 5µs making 1 call to Template::Stash::undefined
88$output .= $stash->get('IntranetUserCSS');
89$output .= "</style>";
90110µs10s}
# spent 1.98ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 1.98ms
9112µs
92$output .= "\n\n<!-- koha core js -->\n<script type=\"text/javascript\" src=\"";
931300ns#line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
94$output .= $stash->get('themelang');
95$output .= "/js/staff-global.js\"></script>\n\n";
96#line 30 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
97$output .= $context->include('validator-strings.inc');
9815µs$output .= "\n";
99#line 37 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
100110µsif (($stash->get('IntranetUserJS'))) {
101$output .= "\n <script type=\"text/javascript\">\n //<![CDATA[\n ";
102#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
103$output .= $stash->get('IntranetUserJS');
104$output .= "\n //]]>\n </script>\n";
105}
106
107$output .= "\n\n";
108#line 57 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
109if (($stash->get('virtualshelves') || $stash->get('intranetbookbag'))) {
110$output .= "\n<script type=\"text/javascript\">\n //<![CDATA[\n var MSG_BASKET_EMPTY = _(\"Your cart is currently empty\");\n var MSG_RECORD_IN_BASKET = _(\"This item is already in your cart\");\n var MSG_RECORD_ADDED = _(\"This item has been added to your cart\");\n var MSG_NRECORDS_ADDED = _(\"%s item(s) added to your cart\");\n var MSG_NRECORDS_IN_BASKET = _(\"%s already in your cart\");\n var MSG_NO_RECORD_SELECTED = _(\"No item was selected\");\n var MSG_NO_RECORD_ADDED = _(\"No item was added to your cart (already in your cart) !\");\n var MSG_CONFIRM_DEL_BASKET = _(\"Are you sure you want to empty your cart?\");\n var MSG_CONFIRM_DEL_RECORDS = _(\"Are you sure you want to remove the selected items?\");\n var MSG_IN_YOUR_CART = _(\"Items in your cart: %s\");\n var MSG_NON_RESERVES_SELECTED = _(\"One or more selected items cannot be reserved.\");\n //]]>\n </script>\n\n <script type=\"text/javascript\" src=\"";
111#line 56 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
112$output .= $stash->get('themelang');
113$output .= "/js/basket.js\"></script>\n";
114}
115
116$output .= "\n\n";
117#line 66 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
118if ($stash->get('LocalCoverImages')) {
119$output .= "\n <script type=\"text/javascript\" src=\"";
120#line 60 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
121$output .= $stash->get('themelang');
122$output .= "/js/localcovers.js\"></script>\n <script type=\"text/javascript\">\n //<![CDATA[\n var NO_LOCAL_JACKET = _(\"No cover image available\");\n //]]>\n </script>\n";
123}
124
125$output .= "\n\n";
126#line 87 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
127if ($stash->get(['Koha', 0, 'Preference', [ 'AudioAlerts' ]]) || $stash->get('AudioAlertsPage')) {
128$output .= "\n <script type=\"text/javascript\">\n //<![CDATA[\n var AUDIO_ALERT_PATH = '";
129#line 71 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
130$output .= $stash->get('interface');
131$output .= "/";
132#line 71 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
133$output .= $stash->get('theme');
134$output .= "/sound/';\n var AUDIO_ALERTS = JSON.parse( '";
135#line 72 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
136
137# FILTER
138$output .= do {
139 my $output = '';
140 my $_tt_filter = $context->filter('replace', [ '\'', ('' . "\\'") ])
141 || $context->throw($context->error);
142
143$output .= $stash->get(['AudioAlerts', 0, 'AudioAlerts', 0]);
144
145 &$_tt_filter($output);
146};
147
148$output .= "' );\n //]]>\n\n \$( document ).ready(function() {\n if ( AUDIO_ALERTS ) {\n for ( var k in AUDIO_ALERTS ) {\n var alert = AUDIO_ALERTS[k];\n if ( \$( alert.selector ).length ) {\n playSound( alert.sound );\n break;\n }\n }\n }\n });\n </script>\n";
149}
150
151$output .= "\n\n<!-- For keeping the text when navigating the search tabs -->\n";
152#line 90 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc"
153$output .= $context->include('searchbox-keep-text.inc');
154$output .= "\n";
155 } };
156 if ($@) {
157 $_tt_error = $context->catch($@, \$output);
158 die $_tt_error unless $_tt_error->type eq 'return';
159 }
160
161 return $output;
162}
163