← 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/cat-search.inc
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
311145µs24.5msTemplate::Document::::__ANON__[:41]Template::Document::__ANON__[:41]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 24.5ms (145µs+24.4) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc:41] which was called 3 times, avg 8.17ms/call: # 3 times (145µs+24.4ms) by Template::Document::process at line 163 of Template/Document.pm, avg 8.17ms/call
239µs$output .= $stash->get('LibraryName');
# spent 9µs making 3 calls to Template::Stash::XS::get, avg 3µs/call
3$output .= "</a></h1><!-- Begin Catalogue Resident Search Box -->\n<div id=\"header_search\">\n\n";
4#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc"
530s$output .= $context->include('patron-search-box.inc');
# spent 24.3ms making 3 calls to Template::Context::include, avg 8.11ms/call, recursion: max depth 1, sum of overlapping time 24.3ms
6$output .= "\n\n";
7#line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc"
8if (($stash->get('CAN_user_circulate'))) {
9$output .= "\n<div id=\"checkin_search\" class=\"residentsearch\">\n <p class=\"tip\">Scan a barcode to check in:</p>\n <form method=\"post\" action=\"/cgi-bin/koha/circ/returns.pl\" autocomplete=\"off\">\n <input class=\"head-searchbox\" name=\"barcode\" id=\"ret_barcode\" size=\"40\" />\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n </form>\n</div>\n ";
10}
11
12$output .= "\n ";
13#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc"
14if (($stash->get('CAN_user_catalogue'))) {
15312µs$output .= "\n <div id=\"catalog_search\" class=\"residentsearch\">\n <p class=\"tip\">Enter search keywords:</p>\n <form action=\"/cgi-bin/koha/catalogue/search.pl\" method=\"get\" id=\"cat-search-block\">\n <input type=\"text\" name=\"q\" id=\"search-form\" size=\"40\" value=\"\" title=\"Enter the terms you wish to search for.\" class=\"head-searchbox form-text\" />\n <input type=\"submit\" class=\"submit\" value=\"Submit\" />\n </form>\n </div>\n ";
# spent 12µs making 3 calls to Template::Stash::XS::get, avg 4µs/call
16}
17
18$output .= "\n \n <ul>\n ";
19#line 27 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc"
20if (($stash->get('CAN_user_circulate'))) {
21$output .= "<li><a onclick=\"keep_text(0)\" href=\"#circ_search\">Check out</a></li>";
22}
23
2438µs$output .= "\n ";
# spent 8µs making 3 calls to Template::Stash::XS::get, avg 2µs/call
25#line 28 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc"
26if (($stash->get('CAN_user_circulate'))) {
2738µs$output .= "<li><a onclick=\"keep_text(1)\" href=\"#checkin_search\">Check in</a></li>";
# spent 8µs making 3 calls to Template::Stash::XS::get, avg 3µs/call
2837µs}
# spent 7µs making 3 calls to Template::Stash::XS::get, avg 2µs/call
2937µs
# spent 7µs making 3 calls to Template::Stash::XS::get, avg 2µs/call
30$output .= "\n ";
31#line 29 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc"
32if (($stash->get('CAN_user_catalogue'))) {
33$output .= "<li onclick=\"keep_text(2)\" class=\"ui-tabs-active\"><a href=\"#catalog_search\">Search the catalog</a></li>";
34}
35
36$output .= "\n </ul> \n</div><!-- /header_search -->\n</div><!-- /gradient -->\n<!-- End Catalogue Resident Search Box -->\n";
37 } };
38 if ($@) {
39 $_tt_error = $context->catch($@, \$output);
40 die $_tt_error unless $_tt_error->type eq 'return';
41 }
42
43 return $output;
44}
45