← 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/header.inc
StatementsExecuted 60 statements in 211µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1011268µs268µsTemplate::Document::::CORE:matchTemplate::Document::CORE:match (opcode)
111130µs1.96msTemplate::Document::::__ANON__[:120]Template::Document::__ANON__[:120]
1116µs6µsTemplate::Document::::CORE:substTemplate::Document::CORE:subst (opcode)
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 1.96ms (130µs+1.83) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc:120] which was called: # once (130µs+1.83ms) by Template::Document::process at line 163 of Template/Document.pm
# USE
2215µs21.73ms$stash->set('Branches',
# spent 1.72ms making 1 call to Template::Context::plugin # spent 8µs making 1 call to Template::Stash::XS::set
3 $context->plugin('Branches'));
411µs$output .= "\n<div id=\"header\" class=\"navbar navbar-static-top\">\n <div class=\"navbar-inner\">\n <ul id=\"toplevelmenu\" class=\"nav\">\n ";
5110µs13µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 3µs making 1 call to Template::Stash::XS::get
616µs12µsif (($stash->get('CAN_user_circulate'))) {
# spent 2µs making 1 call to Template::Stash::XS::get
726µs12µs$output .= "<li><a href=\"/cgi-bin/koha/circ/circulation-home.pl\">Circulation</a></li>";
# spent 2µs making 1 call to Template::Stash::XS::get
8}
91800ns
1026µs13µs$output .= "\n ";
# spent 3µs making 1 call to Template::Stash::XS::get
1126µs12µs#line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
121700nsif (($stash->get('CAN_user_borrowers'))) {
13$output .= "<li><a href=\"/cgi-bin/koha/members/members-home.pl\">Patrons</a></li>";
141400ns}
15
16$output .= "\n ";
17#line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
1816µs13µsif (($stash->get('CAN_user_catalogue'))) {
# spent 3µs making 1 call to Template::Stash::XS::get
19$output .= "<li><a href=\"/cgi-bin/koha/catalogue/search.pl\">Search</a></li>";
20}
2119µs13µs
# spent 3µs making 1 call to Template::Stash::XS::get
221700ns$output .= "\n ";
23#line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
24if (($stash->get('intranetbookbag'))) {
2526µs12µs$output .= "\n <li><a href=\"#\" id=\"cartmenulink\">Cart<span id=\"basketcount\"></span></a></li>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
26}
27
2815µs12µs$output .= "\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
291300ns#line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
30$output .= $stash->get('IntranetNav');
3115µs12µs$output .= "\n <li class=\"dropdown\">\n <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">More <b class=\"caret\"></b></a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"/cgi-bin/koha/virtualshelves/shelves.pl\">Lists</a></li>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
321300ns#line 18 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
33if (($stash->get('CAN_user_editcatalogue_edit_catalogue') || $stash->get('CAN_user_editcatalogue_edit_items'))) {
3415µs12µs$output .= "\n <li><a href=\"/cgi-bin/koha/cataloguing/addbooks.pl\">Cataloging</a></li>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
351300ns}
36
3715µs12µs$output .= "\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
381300ns#line 21 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
39if (($stash->get('CAN_user_acquisition'))) {
40$output .= "\n <li><a href=\"/cgi-bin/koha/acqui/acqui-home.pl\">Acquisitions</a></li>\n ";
411600ns}
42
43$output .= "\n <li><a href=\"/cgi-bin/koha/authorities/authorities-home.pl\">Authorities</a></li>\n ";
44#line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
45if (($stash->get('CAN_user_serials'))) {
4615µs12µs$output .= "\n <li><a href=\"/cgi-bin/koha/serials/serials-home.pl\">Serials</a></li>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
471500ns}
48
49$output .= "\n ";
50#line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
51if (($stash->get('UseCourseReserves'))) {
52$output .= "\n <li><a href=\"/cgi-bin/koha/course_reserves/course-reserves.pl\">Course reserves</a></li>\n ";
53}
541400ns
55$output .= "\n ";
56#line 31 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
5717µs12µsif (($stash->get('CAN_user_reports'))) {
# spent 2µs making 1 call to Template::Stash::XS::get
58216µs246µs$output .= "\n <li><a href=\"/cgi-bin/koha/reports/reports-home.pl\">Reports</a></li>\n ";
# spent 30µs making 1 call to Template::Stash::XS::get # spent 16µs making 1 call to Koha::Template::Plugin::Branches::GetLoggedInBranchcode
5927µs12µs}
# spent 2µs making 1 call to Template::Stash::XS::get
60
6116µs12µs$output .= "\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
621400ns#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
631400nsif (($stash->get('CAN_user_tools'))) {
64$output .= "\n <li><a href=\"/cgi-bin/koha/tools/tools-home.pl\">Tools</a></li>\n ";
6515µs}
66
67$output .= "\n ";
68#line 37 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
69if (($stash->get('CAN_user_parameters'))) {
70$output .= "\n <li><a href=\"/cgi-bin/koha/admin/admin-home.pl\">Administration</a></li>\n ";
71}
72
73$output .= "\n <li><a href=\"/cgi-bin/koha/about.pl\">About Koha</a></li>\n </ul>\n </li>\n </ul>\n <ul class=\"nav pull-right\">\n ";
74#line 105 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
7517µs13µsif (($stash->get('loggedinusername'))) {
# spent 3µs making 1 call to Template::Stash::XS::get
76$output .= "\n <li class=\"dropdown\">\n <a href=\"#\" id=\"drop3\" role=\"button\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n <span class=\"loggedinusername\">";
7711µs#line 46 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
78$output .= $stash->get('loggedinusername');
79$output .= "</span>\n <span class=\"separator\">|</span>\n ";
80210µs216µs#line 61 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 12µs making 1 call to Template::Stash::XS::get # spent 4µs making 1 call to Template::Stash::undefined
81if (($stash->get('AutoLocation'))) {
82$output .= "\n <brand>\n ";
8316µs12µs#line 50 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
8422µs$output .= $stash->get('LoginBranchname');
85$output .= "\n </brand>\n ";
8616µs12µs}
# spent 2µs making 1 call to Template::Stash::XS::get
871700nselse {
8816µs12µs$output .= "\n <strong>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
891900ns#line 59 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
9011µsif (($stash->get('LoginBranchname') eq 'NO_LIBRARY_SET')) {
91$output .= "\n NO LIBRARY SET\n ";
92}
93else {
94$output .= "\n <span id=\"logged-in-branch-name\">";
95#line 57 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
961600ns$output .= $stash->get('LoginBranchname');
97$output .= "</span>\n <span id=\"logged-in-branch-code\" class=\"content_hidden\">";
98#line 58 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
99$output .= $stash->get(['Branches', 0, 'GetLoggedInBranchcode', 0]);
100$output .= "</span>\n ";
101}
102
103$output .= "\n </strong>\n ";
104}
10515µs12µs
# spent 2µs making 1 call to Template::Stash::XS::get
1061500ns$output .= "\n <b class=\"caret\"></b>\n </a>\n <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"drop3\">\n ";
107#line 75 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
10815µs12µsif (($stash->get('IndependentBranches'))) {
# spent 2µs making 1 call to Template::Stash::XS::get
109$output .= "\n ";
110#line 70 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
111if (($stash->get('CAN_user_management') || $stash->get('CAN_user_editcatalogue_edit_catalogue'))) {
1121800ns$output .= "\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/circ/selectbranchprinter.pl\">Set library</a>\n </li>\n ";
113}
1141200ns
115$output .= "\n ";
116}
117else {
118$output .= "\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/circ/selectbranchprinter.pl\">Set library</a>\n </li>\n ";
11915µs}
120
12119µs$output .= "\n ";
122#line 80 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
123if ($stash->get('EnableSearchHistory')) {
124$output .= "\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/catalogue/search-history.pl\">Search history</a>\n </li>\n ";
125}
126
127$output .= "\n ";
128#line 88 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
129if ($stash->get('loggedinusernumber')) {
130$output .= "\n <li class =\"toplinks-myaccount\">\n <a class=\"toplinks\" href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=";
131#line 83 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
132$output .= $stash->get('loggedinusernumber');
133$output .= "\">My account</a>\n </li>\n <li class=\"toplinks-mycheckouts\">\n <a class=\"toplinks\" href=\"/cgi-bin/koha/circ/circulation.pl?borrowernumber=";
134#line 86 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
135$output .= $stash->get('loggedinusernumber');
136$output .= "\">My checkouts</a>\n </li>\n ";
137}
138
139$output .= "\n <li>\n <a id=\"logout\" class=\"toplinks\" href=\"/cgi-bin/koha/mainpage.pl?logout.x=1\">Log out</a>\n </li>\n </ul>\n </li>\n <li>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/help.pl\" id=\"helper\">Help</a>\n </li>\n ";
140}
141else {
142$output .= "\n <li class=\"loggedout\">\n <span>\n <a href=\"/cgi-bin/koha/mainpage.pl\" id=\"login\">Log in</a>\n <span class=\"separator\">|</span>\n <a class=\"toplinks\" href=\"/cgi-bin/koha/help.pl\" id=\"helper\">Help</a>\n </span>\n </li>\n ";
143}
144
145$output .= "\n </ul>\n </div>\n ";
146#line 108 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
147if (($stash->get('intranetbookbag'))) {
148$output .= "<div id=\"cartDetails\">Your cart is empty.</div>";
149}
150
151$output .= "\n</div>\n";
152 } };
153 if ($@) {
154 $_tt_error = $context->catch($@, \$output);
155 die $_tt_error unless $_tt_error->type eq 'return';
156 }
157
158 return $output;
159}
160
 
# spent 268µs within Template::Document::CORE:match which was called 10 times, avg 27µs/call: # 10 times (268µs+0s) by Template::Document::new at line 75 of Template/Document.pm, avg 27µs/call
sub Template::Document::CORE:match; # opcode
# spent 6µs within Template::Document::CORE:subst which was called: # once (6µs+0s) by Template::Document::AUTOLOAD at line 187 of Template/Document.pm
sub Template::Document::CORE:subst; # opcode