← 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/doc-head-open.inc
StatementsExecuted 16 statements in 126µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11142µs3.55msTemplate::Document::::__ANON__[:36]Template::Document::__ANON__[:36]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 3.55ms (42µs+3.51) within Template::Document::__ANON__[/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc:36] which was called: # once (42µs+3.51ms) by Template::Document::process at line 163 of Template/Document.pm
2154µs4181µs$output .= $stash->get(['template', 0, 'name', 0, 'split', [ '/' ], 'last', 0]);
# spent 117µs making 1 call to Template::Stash::XS::get # spent 44µs making 1 call to Template::VMethods::text_split # spent 16µs making 1 call to Template::Document::AUTOLOAD # spent 4µs making 1 call to Template::VMethods::list_last
31600ns$output .= " -->\n\n";
4#line 4 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
518µs233µs# USE
# spent 30µs making 1 call to Template::Context::plugin # spent 3µs making 1 call to Template::Stash::XS::set
6$stash->set('Koha',
72900ns $context->plugin('Koha'));
81600ns$output .= "\n";
9#line 22 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
10if ($stash->get(['Koha', 0, 'Preference', [ 'DumpTemplateVarsIntranet' ]])) {
11$output .= "\n ";
12#line 21 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
13
14# TRY
15$output .= do {
16 my $output = '';
17 my ($_tt_error, $_tt_handler);
18 eval {
19$output .= "\n ";
20#line 7 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
21# USE
22119µs26.65ms$stash->set('Stash',
# spent 3.33ms making 1 call to Template::Stash::XS::get # spent 3.32ms making 1 call to Koha::Template::Plugin::Koha::Preference
23 $context->plugin('Stash'));
24225µs328µs$output .= "\n ";
# spent 23µs making 2 calls to Template::Stash::XS::get, avg 12µs/call # spent 5µs making 1 call to Template::Stash::undefined
251400ns#line 8 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
26# USE
27$stash->set('Dumper',
2822µs $context->plugin('Dumper'));
29$output .= "\n <!--\n ";
301500ns#line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
31
32# FILTER
33$output .= do {
34 my $output = '';
3516µs my $_tt_filter = $context->filter('replace', [ '<!--', '<!- -' ])
36 || $context->throw($context->error);
3718µs
38$output .= "\n ";
39#line 13 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
40
41# FILTER
42$output .= do {
43 my $output = '';
44 my $_tt_filter = $context->filter('replace', [ '-->', '- ->' ])
45 || $context->throw($context->error);
46
4711µs$output .= "\n ";
48#line 12 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
49$output .= $stash->get(['Dumper', 0, 'dump', [ $stash->get(['Stash', 0, 'stash', 0]) ]]);
50$output .= "\n ";
51
52 &$_tt_filter($output);
53};
54
55$output .= "\n ";
56
57 &$_tt_filter($output);
58};
59
60$output .= "\n -->\n ";
61 };
62 if ($@) {
63 $_tt_error = $context->catch($@, \$output);
64 die $_tt_error if $_tt_error->type =~ /^return|stop$/;
65 $stash->set('error', $_tt_error);
66 $stash->set('e', $_tt_error);
67 if (defined ($_tt_handler = $_tt_error->select_handler())) {
68$_tt_error = 0;
69 }
70else {
71 # DEFAULT
72$output .= "\n <!--\n DumpTemplateVarsIntranet is set to 'Do', but\n Template::Plugin::Stash is not installed.\n -->\n ";
73 $_tt_error = '';
74}
75 }
76# FINAL
77die $_tt_error if $_tt_error;
78$output;
79};
80
81$output .= "\n";
82}
83
84$output .= "\n\n";
85#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
86if (($stash->get('bidi'))) {
87$output .= "<html lang=\"";
88#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
89$output .= $stash->get('lang');
90$output .= "\" dir=\"";
91#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
92$output .= $stash->get('bidi');
93$output .= "\">";
94}
95else {
96$output .= "<html lang=\"";
97#line 24 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc"
98$output .= $stash->get('lang');
99$output .= "\">";
100}
101
102$output .= "\n<head>\n";
103 } };
104 if ($@) {
105 $_tt_error = $context->catch($@, \$output);
106 die $_tt_error unless $_tt_error->type eq 'return';
107 }
108
109 return $output;
110}
111