← 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/intranetstylesheet.inc
StatementsExecuted 16 statements in 56µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4114.89ms5.10msTemplate::Document::::__ANON__[:28]Template::Document::__ANON__[:28]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1211µs823µs
# spent 5.10ms (4.89+208µs) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc:28] which was called 4 times, avg 1.27ms/call: # 4 times (4.89ms+208µs) by Template::Document::process at line 163 of Template/Document.pm, avg 1.27ms/call
if (!($stash->get('intranetstylesheet'))) {
# spent 12µs making 4 calls to Template::Stash::XS::get, avg 3µs/call # spent 11µs making 4 calls to Template::Stash::XS::set, avg 3µs/call
2$stash->set('intranetstylesheet', 'staff-global.css');
3}
4
5311µs820µs$output .= "\n";
# spent 20µs making 8 calls to Template::Stash::XS::get, avg 3µs/call
6318µs8247µs#line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
# spent 147µs making 4 calls to Template::Stash::XS::get, avg 37µs/call # spent 100µs making 4 calls to Template::VMethods::text_match, avg 25µs/call
72700nsif (($stash->get(['intranetstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) {
8$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
91200ns#line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
10$output .= $stash->get('intranetstylesheet');
11$output .= "\" />\n";
12}
13else {
14$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
1514µs49µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
# spent 9µs making 4 calls to Template::Stash::XS::get, avg 2µs/call
16$output .= $stash->get('themelang');
17$output .= "/css/";
18#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
19$output .= $stash->get('intranetstylesheet');
201500ns$output .= "\" />\n";
21}
221200ns
23$output .= "\n\n<!-- local colors -->\n";
24#line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
25if (($stash->get('intranetcolorstylesheet'))) {
26$output .= "\n ";
2714µs#line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
28if (($stash->get(['intranetcolorstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) {
2916µs$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
30#line 11 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
31$output .= $stash->get('intranetcolorstylesheet');
32$output .= "\" />\n ";
33}
34else {
35$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
36#line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
37$output .= $stash->get('themelang');
38$output .= "/css/";
39#line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
40$output .= $stash->get('intranetcolorstylesheet');
41$output .= "\" />\n ";
42}
43
44$output .= "\n";
45}
46
47$output .= "\n";
48 } };
49 if ($@) {
50 $_tt_error = $context->catch($@, \$output);
51 die $_tt_error unless $_tt_error->type eq 'return';
52 }
53
54 return $output;
55}
56