← 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/intranetstylesheet.inc
StatementsExecuted 16 statements in 54µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11128µs88µsTemplate::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µs25µs
# spent 88µs (28+60) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc:28] which was called: # once (28µs+60µs) by Template::Document::process at line 163 of Template/Document.pm
if (!($stash->get('intranetstylesheet'))) {
# spent 3µs making 1 call to Template::Stash::XS::get # spent 2µs making 1 call to Template::Stash::XS::set
2$stash->set('intranetstylesheet', 'staff-global.css');
3}
4
5311µs25µs$output .= "\n";
# spent 5µs making 2 calls to Template::Stash::XS::get, avg 2µs/call
6315µs281µs#line 6 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
# spent 46µs making 1 call to Template::Stash::XS::get # spent 35µs making 1 call to Template::VMethods::text_match
72600nsif (($stash->get(['intranetstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) {
8$output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"";
91300ns#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=\"";
1516µs12µs#line 5 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc"
# spent 2µs making 1 call to Template::Stash::XS::get
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');
201400ns$output .= "\" />\n";
21}
221100ns
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