Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc |
Statements | Executed 16 statements in 126µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 42µs | 3.55ms | __ANON__[:36] | Template::Document::
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 | ||||
2 | 1 | 54µs | 4 | 181µ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 |
3 | 1 | 600ns | $output .= " -->\n\n"; | ||
4 | #line 4 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc" | ||||
5 | 1 | 8µs | 2 | 33µ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', | ||||
7 | 2 | 900ns | $context->plugin('Koha')); | ||
8 | 1 | 600ns | $output .= "\n"; | ||
9 | #line 22 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc" | ||||
10 | if ($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 | ||||
22 | 1 | 19µs | 2 | 6.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')); | ||||
24 | 2 | 25µs | 3 | 28µ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 |
25 | 1 | 400ns | #line 8 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc" | ||
26 | # USE | ||||
27 | $stash->set('Dumper', | ||||
28 | 2 | 2µs | $context->plugin('Dumper')); | ||
29 | $output .= "\n <!--\n "; | ||||
30 | 1 | 500ns | #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 = ''; | ||||
35 | 1 | 6µs | my $_tt_filter = $context->filter('replace', [ '<!--', '<!- -' ]) | ||
36 | || $context->throw($context->error); | ||||
37 | 1 | 8µ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 | |||||
47 | 1 | 1µ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 | } | ||||
70 | else { | ||||
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 | ||||
77 | die $_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" | ||||
86 | if (($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 | } | ||||
95 | else { | ||||
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 |