← 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/home-search.inc
StatementsExecuted 23 statements in 76µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11158µs12.5msTemplate::Document::::__ANON__[:48]Template::Document::__ANON__[:48]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 12.5ms (58µs+12.4) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc:48] which was called: # once (58µs+12.4ms) by Template::Document::process at line 163 of Template/Document.pm
216µs13µs$output .= $stash->get('LibraryName');
# spent 3µs making 1 call to Template::Stash::XS::get
31500ns$output .= "</a></h1><!-- Begin Main page Resident Search Box -->\n\n<div id=\"header_search\">\n ";
4#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
514µs10s$output .= $context->include('patron-search-box.inc');
# spent 12.4ms making 1 call to Template::Context::include, recursion: max depth 1, sum of overlapping time 12.4ms
61800ns$output .= "\n";
71500ns#line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
81300nsif (($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 name=\"barcode\" class=\"head-searchbox\" id=\"ret_barcode\" size=\"40\" accesskey=\"r\" />\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n </form>\n</div>";
10}
11
12$output .= "\n";
1318µs13µs#line 22 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
# spent 3µs making 1 call to Template::Stash::XS::get
14if (($stash->get('CAN_user_borrowers'))) {
15$output .= "\n<div id=\"patron_search\" class=\"residentsearch\">\n <p class=\"tip\">Enter patron card number or partial name:</p>\n <form action=\"/cgi-bin/koha/members/member.pl\" method=\"post\">\n <input name=\"searchmember\" class=\"head-searchbox\" id=\"searchmember\" size=\"40\" type=\"text\"/>\n <input type=\"hidden\" name=\"quicksearch\" value=\"1\" />\n <input value=\"Submit\" class=\"submit\" type=\"submit\" />\n </form>\n</div>";
16}
171500ns
18$output .= "\n";
19#line 30 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
20if (($stash->get('CAN_user_catalogue'))) {
21$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\" class=\"head-searchbox\" size=\"40\" accesskey=\"q\" />\n <input type=\"submit\" class=\"submit\" value=\"Submit\"/>\n </form>\n</div>";
2217µs12µs}
# spent 2µs making 1 call to Template::Stash::XS::get
23
24$output .= "\n\n<ul>\n ";
25#line 33 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
261500nsif (($stash->get('CAN_user_circulate'))) {
27$output .= "<li><a onclick=\"keep_text(0)\" href=\"#circ_search\">Check out</a></li>";
28}
29
3019µs12µs$output .= "\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
31#line 34 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
32if (($stash->get('CAN_user_circulate'))) {
3316µs12µs$output .= "<li><a onclick=\"keep_text(1)\" href=\"#checkin_search\">Check in</a></li>";
# spent 2µs making 1 call to Template::Stash::XS::get
3426µs12µs}
# spent 2µs making 1 call to Template::Stash::XS::get
3516µs12µs
# spent 2µs making 1 call to Template::Stash::XS::get
3615µs12µs$output .= "\n ";
# spent 2µs making 1 call to Template::Stash::XS::get
371500ns#line 35 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
381400nsif (($stash->get('CAN_user_borrowers'))) {
391600ns$output .= "<li><a onclick=\"keep_text(2)\" href=\"#patron_search\">Search patrons</a></li>";
401800ns}
41
421200ns$output .= "\n ";
43#line 36 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc"
44if (($stash->get('CAN_user_catalogue'))) {
45$output .= "<li><a onclick=\"keep_text(3)\" href=\"#catalog_search\">Search the catalog</a></li>";
46}
4718µs
48$output .= "\n</ul>\n\n</div><!-- /header_search -->\n</div><!-- /gradient -->\n<!-- End Main page Resident Search Box -->\n";
4916µs } };
50 if ($@) {
51 $_tt_error = $context->catch($@, \$output);
52 die $_tt_error unless $_tt_error->type eq 'return';
53 }
54
55 return $output;
56}
57