Filename | /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc |
Statements | Executed 16 statements in 56µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4 | 1 | 1 | 4.89ms | 5.10ms | __ANON__[:28] | Template::Document::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 11µs | 8 | 23µ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 # 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 | |||||
5 | 3 | 11µs | 8 | 20µs | $output .= "\n"; # spent 20µs making 8 calls to Template::Stash::XS::get, avg 3µs/call |
6 | 3 | 18µs | 8 | 247µ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 |
7 | 2 | 700ns | if (($stash->get(['intranetstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) { | ||
8 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
9 | 1 | 200ns | #line 3 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||
10 | $output .= $stash->get('intranetstylesheet'); | ||||
11 | $output .= "\" />\n"; | ||||
12 | } | ||||
13 | else { | ||||
14 | $output .= "\n <link rel=\"stylesheet\" type=\"text/css\" href=\""; | ||||
15 | 1 | 4µs | 4 | 9µ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'); | ||||
20 | 1 | 500ns | $output .= "\" />\n"; | ||
21 | } | ||||
22 | 1 | 200ns | |||
23 | $output .= "\n\n<!-- local colors -->\n"; | ||||
24 | #line 15 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||||
25 | if (($stash->get('intranetcolorstylesheet'))) { | ||||
26 | $output .= "\n "; | ||||
27 | 1 | 4µs | #line 14 "/home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/intranetstylesheet.inc" | ||
28 | if (($stash->get(['intranetcolorstylesheet', 0, 'match', [ '^https?:|^\/' ]]))) { | ||||
29 | 1 | 6µ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 | } | ||||
34 | else { | ||||
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 |