← 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/modules/intranet-main.tt
StatementsExecuted 104 statements in 496µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111343µs108msTemplate::Document::::__ANON__[:203]Template::Document::__ANON__[:203]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 108ms (343µs+108) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt:203] which was called: # once (343µs+108ms) by Template::Document::process at line 163 of Template/Document.pm
# USE
2318µs312.8ms$stash->set('Koha',
# spent 10.6ms making 1 call to Template::Context::include # spent 2.16ms making 1 call to Template::Context::plugin # spent 8µs making 1 call to Template::Stash::XS::set
311µs $context->plugin('Koha'));
428µs14µs$output .= "\n";
# spent 4µs making 1 call to Template::Stash::XS::get
5214µs134.9ms#line 2 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 34.9ms making 1 call to Template::Context::include
613µs$output .= $context->include('doc-head-open.inc');
71400ns$output .= "\n<title>Koha staff client</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"";
8#line 4 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
9$output .= $stash->get('themelang');
10110µs115.5ms$output .= "/css/mainpage.css\" />\n";
# spent 15.5ms making 1 call to Template::Context::include
11212µs117.9ms#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 17.9ms making 1 call to Template::Context::include
1212µs$output .= $context->include('doc-head-close.inc');
13$output .= "\n<style type=\"text/css\"> </style>\n\n</head>\n<body id=\"main_intranet-main\" class=\"main\">\n";
14#line 10 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
15$output .= $context->include('header.inc');
16$output .= "\n";
17#line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
18$output .= $context->include('home-search.inc');
19$output .= "\n\n<div id=\"breadcrumbs\" >Home</div>\n\n\n<div id=\"doc3\" class=\"yui-t3\">\n <div id=\"bd\" role=\"main\">\n <div id=\"yui-main\">\n <div class=\"yui-b\"><div class=\"yui-g\">\n ";
20#line 25 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
21if ($stash->get('adminWarning')) {
22$output .= "\n <div id=\"adminwarning\" class=\"dialog alert\">\n <p><strong>Warning:</strong> You're logged in with the database administrator account. This is a bad idea, and you are likely to encounter problems.</p>\n <p>You should <a href=\"/cgi-bin/koha/members/members-home.pl\">create a patron</a> to use when administering Koha and give it superlibrarian permissions.</p>\n </div>\n ";
23}
24
25110µs214µs$output .= "\n <div class=\"yui-u first\">\n\n <div id=\"area-list-left\">\n <ul class=\"biglinks-list\">\n ";
# spent 11µs making 1 call to Template::Stash::XS::get # spent 2µs making 1 call to Template::Stash::undefined
26#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
27if (($stash->get('CAN_user_circulate'))) {
28$output .= "\n <li>\n <a class=\"icon_general icon_circulation\" href=\"/cgi-bin/koha/circ/circulation-home.pl\">Circulation</a>\n </li>\n ";
2911µs}
30
31$output .= "\n\n ";
32#line 40 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
33if (($stash->get('CAN_user_borrowers'))) {
3416µs13µs$output .= "\n <li>\n <a class=\"icon_general icon_patrons\" href=\"/cgi-bin/koha/members/members-home.pl\">Patrons</a>\n </li>\n ";
# spent 3µs making 1 call to Template::Stash::XS::get
35}
36
37$output .= "\n\n ";
381500ns#line 46 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
39if (($stash->get('CAN_user_catalogue'))) {
4016µs12µs$output .= "\n <li>\n <a class=\"icon_general icon_search\" href=\"/cgi-bin/koha/catalogue/search.pl\">Advanced search</a>\n </li>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
41}
42
43$output .= "\n\n <li>\n <a class=\"icon_general icon_lists\" href=\"/cgi-bin/koha/virtualshelves/shelves.pl\">Lists</a>\n </li>\n\n ";
441600ns#line 56 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
45if (($stash->get('UseCourseReserves'))) {
4616µs12µs$output .= "\n <li>\n <a class=\"icon_general icon_course_reserves\" href=\"/cgi-bin/koha/course_reserves/course-reserves.pl\">Course reserves</a>\n </li>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
47}
48
49$output .= "\n\n ";
5011µs#line 62 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
51if (($stash->get('CAN_user_editcatalogue_edit_catalogue') || $stash->get('CAN_user_editcatalogue_edit_items'))) {
52$output .= "\n <li>\n <a class=\"icon_general icon_cataloging\" href=\"/cgi-bin/koha/cataloguing/addbooks.pl\">Cataloging</a>\n </li>\n ";
53}
54
55$output .= "\n <li>\n <a class=\"icon_general icon_authorities\" href=\"/cgi-bin/koha/authorities/authorities-home.pl\">Authorities</a>\n </li>\n </ul>\n </div><!-- /area-list-left -->\n </div><!-- /yui-u first -->\n <div class=\"yui-u\">\n <div id=\"area-list-right\">\n <ul class=\"biglinks-list\">\n ";
5615µs12µs#line 77 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 2µs making 1 call to Template::Stash::XS::get
57if (($stash->get('CAN_user_serials'))) {
58$output .= "\n <li>\n <a class=\"icon_general icon_serials\" href=\"/cgi-bin/koha/serials/serials-home.pl\">Serials</a>\n <span class=\"biglink\"></span>\n </li>\n ";
59}
601600ns
61$output .= "\n\n ";
6216µs12µs#line 84 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 2µs making 1 call to Template::Stash::XS::get
63if (($stash->get('CAN_user_acquisition'))) {
64$output .= "\n <li>\n <a class=\"icon_general icon_acquisitions\" href=\"/cgi-bin/koha/acqui/acqui-home.pl\">Acquisitions</a>\n <span class=\"biglink\"></span>\n </li>\n ";
65}
6611µs
67$output .= "\n\n ";
68#line 90 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
69if (($stash->get('CAN_user_reports'))) {
70$output .= "\n <li>\n <a class=\"icon_general icon_reports\" href=\"/cgi-bin/koha/reports/reports-home.pl\">Reports</a>\n </li>\n ";
71}
72
73$output .= "\n\n\n ";
74#line 97 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
75if (($stash->get('CAN_user_tools'))) {
76$output .= "\n <li>\n <a class=\"icon_general icon_tools\" href=\"/cgi-bin/koha/tools/tools-home.pl\">Tools</a>\n </li>\n ";
7716µs12µs}
# spent 2µs making 1 call to Template::Stash::XS::get
78
79$output .= "\n\n ";
80#line 103 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
811700nsif (($stash->get('CAN_user_parameters'))) {
82$output .= "\n <li>\n <a class=\"icon_general icon_administration\" href=\"/cgi-bin/koha/admin/admin-home.pl\">Koha administration</a>\n </li>\n ";
83}
8417µs12µs
# spent 2µs making 1 call to Template::Stash::XS::get
85$output .= "\n <li>\n <a class=\"icon_general icon_koha\" href=\"/cgi-bin/koha/about.pl\">About Koha</a>\n </li>\n </ul>\n </div><!-- /area-list-right -->\n </div><!-- /yui-u -->\n</div><!-- /yui-g -->\n<div class=\"yui-g\">\n ";
86#line 158 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
87if ((($stash->get('CAN_user_tools_moderate_comments') && $stash->get('pendingcomments')) || ($stash->get('CAN_user_tools_moderate_tags') && $stash->get('pendingtags')) || ($stash->get('CAN_user_borrowers') && $stash->get('pending_borrower_modifications')) || ($stash->get('CAN_user_acquisition') && $stash->get('pendingsuggestions')) || ($stash->get('CAN_user_borrowers') && $stash->get('pending_discharge_requests')))) {
881600ns$output .= "\n <div id=\"area-pending\">\n ";
89#line 125 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
9016µs12µsif (($stash->get('CAN_user_acquisition') && $stash->get('pendingsuggestions'))) {
# spent 2µs making 1 call to Template::Stash::XS::get
91$output .= "\n <div class=\"pending-info\" id=\"suggestions_pending\">\n\n <a href=\"/cgi-bin/koha/suggestion/suggestion.pl#ASKED\">Suggestions pending approval</a>:\n <span class=\"pending-number-link\">";
92#line 123 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
93$output .= $stash->get('pendingsuggestions');
941600ns$output .= "</span>\n </div>\n ";
95}
96
9716µs12µs$output .= "\n\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
98#line 132 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
99if (($stash->get('CAN_user_tools_moderate_comments') && $stash->get('pendingcomments'))) {
100$output .= "\n <div class=\"pending-info\" id=\"comments_pending\">\n <a href=\"/cgi-bin/koha/reviews/reviewswaiting.pl\">Comments pending approval</a>:\n <span class=\"pending-number-link\">";
1011500ns#line 130 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
102$output .= $stash->get('pendingcomments');
10316µs12µs$output .= "</span>\n </div>\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
104}
105
106$output .= "\n\n ";
10713µs#line 139 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
108if (($stash->get('CAN_user_tools_moderate_tags') && $stash->get('pendingtags'))) {
109$output .= "\n <div class=\"pending-info\" id=\"tags_pending\">\n <a href=\"/cgi-bin/koha/tags/review.pl\">Tags pending approval</a>:\n <span class=\"pending-number-link\">";
110#line 137 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
111$output .= $stash->get('pendingtags');
112$output .= "</span>\n </div>\n ";
113}
114
115$output .= "\n\n\n ";
116#line 147 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
117if (($stash->get('CAN_user_borrowers') && $stash->get('pending_borrower_modifications'))) {
118$output .= "\n <div class=\"pending-info\" id=\"patron_updates_pending\">\n <a href=\"/cgi-bin/koha/members/members-update.pl\">Patrons requesting modifications</a>:\n <span class=\"pending-number-link\">";
119#line 145 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
120$output .= $stash->get('pending_borrower_modifications');
121$output .= "</span>\n </div>\n ";
122}
123
124$output .= "\n\n ";
125#line 154 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
126if ($stash->get('CAN_user_borrowers') && $stash->get('pending_discharge_requests')) {
127$output .= "\n <div class=\"pending-info\" id=\"patron_discharges_pending\">\n <a href=\"/cgi-bin/koha/members/discharges.pl\">Discharge requests pending</a>:\n <span class=\"pending-number-link\">";
128#line 152 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
129$output .= $stash->get('pending_discharge_requests');
130$output .= "</span>\n </div>\n ";
131}
132
133$output .= "\n\n </div>\n\n ";
134}
135
136$output .= "\n\n</div>\n ";
137#line 167 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
138if (($stash->get('IntranetmainUserblock'))) {
139$output .= "\n <div class=\"yui-g\" id=\"area-userblock\">\n <div class=\"user-info\">\n ";
140#line 164 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
141$output .= $stash->get('IntranetmainUserblock');
142$output .= "\n </div>\n </div>\n ";
143}
144
145$output .= "\n</div>\n </div>\n <div class=\"yui-b\"><!-- YOUR NAVIGATION GOES HERE -->\n ";
146#line 188 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
147if (($stash->get('koha_news_count'))) {
148$output .= "\n <div id=\"area-news\">\n <h3><span=\"news_title\">News</span></h3>\n ";
149#line 174 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
150$stash->set('newsdisp', $stash->get(['Koha', 0, 'Preference', [ 'NewsAuthorDisplay' ]]));
151$output .= "\n ";
152#line 186 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
153
154# FOREACH
155do {
156 my ($_tt_value, $_tt_error, $_tt_oldloop);
157 my $_tt_list = $stash->get('koha_news');
158140µs1021µs
# spent 21µs making 10 calls to Template::Stash::XS::get, avg 2µs/call
1591900ns unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {
160 $_tt_list = Template::Config->iterator($_tt_list)
161 || die $Template::Config::ERROR, "\n";
162 }
163
164 ($_tt_value, $_tt_error) = $_tt_list->get_first();
165 eval { $_tt_oldloop = $stash->get('loop') };
166 $stash->set('loop', $_tt_list);
16715µs12µs eval {
# spent 2µs making 1 call to Template::Stash::XS::get
1681900nsFOR1: while (! $_tt_error) {
169 $stash->{'koha_new'} = $_tt_value;
170$output .= "\n <div class=\"newsitem\" id=\"news";
171#line 176 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
172$output .= $stash->get(['koha_new', 0, 'idnew', 0]);
173$output .= "\"><h4>";
174133µs35.32ms#line 176 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 2.66ms making 1 call to Template::Stash::XS::get # spent 2.65ms making 1 call to Koha::Template::Plugin::Koha::Preference # spent 10µs making 1 call to Template::Stash::XS::set
17511µs$output .= $stash->get(['koha_new', 0, 'title', 0]);
176434µs417µs$output .= "</h4>\n <p>";
# spent 17µs making 4 calls to Template::Stash::XS::get, avg 4µs/call
177619µs27µs#line 177 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 7µs making 2 calls to Template::Stash::XS::get, avg 4µs/call
178632µs616µs$output .= $stash->get(['koha_new', 0, 'new', 0]);
# spent 16µs making 6 calls to Template::Stash::XS::get, avg 3µs/call
179$output .= "</p>\n <p class=\"newsfooter\"> Posted on ";
180214µs27µs#line 178 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 7µs making 2 calls to Template::Stash::XS::get, avg 3µs/call
181449µs27µs$output .= $stash->get(['koha_new', 0, 'newdate', 0]);
# spent 7µs making 2 calls to Template::Stash::XS::get, avg 3µs/call
18244µs#line 178 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
183210µs24µsif ((($stash->get('newsdisp') eq 'staff' || $stash->get('newsdisp') eq 'both') && $stash->get(['koha_new', 0, 'borrowernumber', 0]))) {
# spent 4µs making 2 calls to Template::Stash::XS::get, avg 2µs/call
18421µs$output .= " by <span class=\"newsauthor_title\">";
18521µs#line 178 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
18625µs210µs$output .= $stash->get(['koha_new', 0, 'author_title', 0]);
# spent 10µs making 2 calls to Template::Iterator::get_next, avg 5µs/call
187$output .= " </span>";
18836µs12µs#line 178 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 2µs making 1 call to Template::Stash::XS::get
18938µs13µs$output .= $stash->get(['koha_new', 0, 'author_firstname', 0]);
# spent 3µs making 1 call to Template::Stash::XS::set
19028µs13µs$output .= " ";
# spent 3µs making 1 call to Template::Stash::XS::get
19111µs#line 178 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
192212µs11µs$output .= $stash->get(['koha_new', 0, 'author_surname', 0]);
# spent 1µs making 1 call to UNIVERSAL::isa
19317µs11.62ms$output .= "<br />";
# spent 1.62ms making 1 call to Template::Config::iterator
19414µs122.5ms}
# spent 22.5ms making 1 call to Template::Context::include
19523µs
196$output .= "\n ";
19722µs110µs#line 183 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
# spent 10µs making 1 call to Template::Iterator::get_first
198314µs218µsif (($stash->get('CAN_user_tools'))) {
# spent 14µs making 1 call to Template::Stash::XS::get # spent 4µs making 1 call to Template::Stash::undefined
19917µs14µs$output .= "\n <a href=\"/cgi-bin/koha/tools/koha-news.pl?op=add_form&amp;id=";
# spent 4µs making 1 call to Template::Stash::XS::set
200#line 180 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
2011800ns$output .= $stash->get(['koha_new', 0, 'idnew', 0]);
202311µs$output .= "\">Edit</a>\n | <a href=\"/cgi-bin/koha/tools/koha-news.pl?op=del&amp;ids=";
20322µs#line 181 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
204114µs$output .= $stash->get(['koha_new', 0, 'idnew', 0]);
205$output .= "\">Delete</a>\n | <a href=\"/cgi-bin/koha/tools/koha-news.pl?op=add_form\">New</a>\n ";
206}
207
208$output .= "\n </p>\n </div>\n ";;
209 ($_tt_value, $_tt_error) = $_tt_list->get_next();
210 }
211 };
212 $stash->set('loop', $_tt_oldloop);
213 die $@ if $@;
214 $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;
215 die $_tt_error if $_tt_error;
216};
217
218$output .= "\n </div><!-- /koha-news -->\n ";
219}
220
221$output .= "\n </div>\n </div>\n</div>\n\n<!-- the main div is closed in intranet-bottom.inc -->\n";
222#line 194 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt"
223$output .= $context->include('intranet-bottom.inc');
224$output .= "\n";
225 } };
226 if ($@) {
227 $_tt_error = $context->catch($@, \$output);
228 die $_tt_error unless $_tt_error->type eq 'return';
229 }
230
231 return $output;
232}
233