← 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:33:30 2016

Filename/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
StatementsExecuted 60 statements in 167µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
411483µs2.90msTemplate::Document::::__ANON__[:120]Template::Document::__ANON__[:120]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 2.90ms (483µs+2.42) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc:120] which was called 4 times, avg 725µs/call: # 4 times (483µs+2.42ms) by Template::Document::process at line 163 of Template/Document.pm, avg 725µs/call
# USE
229µs81.83ms$stash->set('Branches',
# spent 1.81ms making 4 calls to Template::Context::plugin, avg 452µs/call # spent 23µs making 4 calls to Template::Stash::XS::set, avg 6µs/call
3 $context->plugin('Branches'));
41700ns$output .= "\n<div id=\"header\" class=\"navbar navbar-static-top\">\n <div class=\"navbar-inner\">\n <ul id=\"toplevelmenu\" class=\"nav\">\n ";
517µs413µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 13µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
616µs412µsif (($stash->get('CAN_user_circulate'))) {
# spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
725µs411µs$output .= "<li><a href=\"/cgi-bin/koha/circ/circulation-home.pl\">Circulation</a></li>";
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
8}
91200ns
1025µs411µs$output .= "\n ";
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
1125µs419µs#line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 19µs making 4 calls to Template::Stash::XS::get, avg 5µs/call
121400nsif (($stash->get('CAN_user_borrowers'))) {
13$output .= "<li><a href=\"/cgi-bin/koha/members/members-home.pl\">Patrons</a></li>";
141500ns}
15
16$output .= "\n ";
17#line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
1816µs411µsif (($stash->get('CAN_user_catalogue'))) {
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
19$output .= "<li><a href=\"/cgi-bin/koha/catalogue/search.pl\">Search</a></li>";
20}
2114µs412µs
# spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
221200ns$output .= "\n ";
23#line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
24if (($stash->get('intranetbookbag'))) {
2526µs410µs$output .= "\n <li><a href=\"#\" id=\"cartmenulink\">Cart<span id=\"basketcount\"></span></a></li>\n ";
# spent 10µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
26}
27
2814µs413µs$output .= "\n ";
# spent 13µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
291200ns#line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
30$output .= $stash->get('IntranetNav');
3114µs411µ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 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
321100ns#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µs411µs$output .= "\n <li><a href=\"/cgi-bin/koha/cataloguing/addbooks.pl\">Cataloging</a></li>\n ";
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
351100ns}
36
3714µs412µs$output .= "\n ";
# spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
381200ns#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 ";
411500ns}
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'))) {
4614µs411µs$output .= "\n <li><a href=\"/cgi-bin/koha/serials/serials-home.pl\">Serials</a></li>\n ";
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
471400ns}
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}
541200ns
55$output .= "\n ";
56#line 31 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
5716µs411µsif (($stash->get('CAN_user_reports'))) {
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
58216µs8264µs$output .= "\n <li><a href=\"/cgi-bin/koha/reports/reports-home.pl\">Reports</a></li>\n ";
# spent 163µs making 4 calls to Template::Stash::XS::get, avg 41µs/call # spent 102µs making 4 calls to Koha::Template::Plugin::Branches::GetLoggedInBranchcode, avg 25µs/call
5925µs411µs}
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
60
6114µs411µs$output .= "\n ";
# spent 11µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
621400ns#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
631200nsif (($stash->get('CAN_user_tools'))) {
64$output .= "\n <li><a href=\"/cgi-bin/koha/tools/tools-home.pl\">Tools</a></li>\n ";
6511µ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"
7515µs415µsif (($stash->get('loggedinusername'))) {
# spent 15µs making 4 calls to Template::Stash::XS::get, avg 4µs/call
76$output .= "\n <li class=\"dropdown\">\n <a href=\"#\" id=\"drop3\" role=\"button\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n <span class=\"loggedinusername\">";
771800ns#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µs8274µs#line 61 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 153µs making 4 calls to Template::Stash::XS::get, avg 38µs/call # spent 120µs making 4 calls to Template::Stash::undefined, avg 30µs/call
81if (($stash->get('AutoLocation'))) {
82$output .= "\n <brand>\n ";
8314µs49µs#line 50 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
# spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call
8422µs$output .= $stash->get('LoginBranchname');
85$output .= "\n </brand>\n ";
8614µs49µs}
# spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call
871600nselse {
8817µs414µs$output .= "\n <strong>\n ";
# spent 14µs making 4 calls to Template::Stash::XS::get, avg 4µs/call
8911µs#line 59 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc"
901800nsif (($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"
961300ns$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}
10514µs412µs
# spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call
1061200ns$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µs49µsif (($stash->get('IndependentBranches'))) {
# spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call
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}
1141100ns
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 ";
11913µs}
120
12118µ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