Filename | /var/www/foswikidev/core/lib/Foswiki/Macros/RENDERZONE.pm |
Statements | Executed 14 statements in 187µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 18µs | 31µs | BEGIN@4.62 | Foswiki::
2 | 1 | 1 | 11µs | 11µs | RENDERZONE | Foswiki::
1 | 1 | 1 | 8µs | 13µs | BEGIN@5.63 | Foswiki::
1 | 1 | 1 | 4µs | 4µs | BEGIN@7.64 | Foswiki::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | package Foswiki; | ||||
3 | |||||
4 | 2 | 28µs | 2 | 44µs | # spent 31µs (18+13) within Foswiki::BEGIN@4.62 which was called:
# once (18µs+13µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 31µs making 1 call to Foswiki::BEGIN@4.62
# spent 13µs making 1 call to strict::import |
5 | 2 | 46µs | 2 | 17µs | # spent 13µs (8+4) within Foswiki::BEGIN@5.63 which was called:
# once (8µs+4µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 13µs making 1 call to Foswiki::BEGIN@5.63
# spent 4µs making 1 call to warnings::import |
6 | |||||
7 | # spent 4µs within Foswiki::BEGIN@7.64 which was called:
# once (4µs+0s) by Foswiki::_expandMacroOnTopicRendering at line 12 | ||||
8 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
9 | require locale; | ||||
10 | import locale(); | ||||
11 | } | ||||
12 | 1 | 90µs | 1 | 4µs | } # spent 4µs making 1 call to Foswiki::BEGIN@7.64 |
13 | |||||
14 | # spent 11µs within Foswiki::RENDERZONE which was called 2 times, avg 6µs/call:
# 2 times (11µs+0s) by Foswiki::_expandMacroOnTopicRendering at line 3435 of /var/www/foswikidev/core/lib/Foswiki.pm, avg 6µs/call | ||||
15 | 2 | 1µs | my ( $this, $params, $topicObject ) = @_; | ||
16 | |||||
17 | # Note, that RENDERZONE is not expanded as soon as this function is called. | ||||
18 | # Instead, a placeholder is inserted into the page. Rendering the current | ||||
19 | # page continues as normal. That way all calls to ADDTOZONE will gather | ||||
20 | # content until the end of the rendering pipeline. Only then will all | ||||
21 | # of the zones' content be registered. The placeholder for RENDERZONE | ||||
22 | # will be expanded at the very end within the Foswiki::writeCompletePage | ||||
23 | # method. | ||||
24 | |||||
25 | 2 | 2µs | my $id = scalar( keys %{ $this->{_renderZonePlaceholder} } ); | ||
26 | |||||
27 | 2 | 3µs | $this->{_renderZonePlaceholder}{$id} = { | ||
28 | params => $params, | ||||
29 | topicObject => $topicObject, | ||||
30 | }; | ||||
31 | |||||
32 | return | ||||
33 | 2 | 8µs | $Foswiki::RENDERZONE_MARKER | ||
34 | . "RENDERZONE{$id}" | ||||
35 | . $Foswiki::RENDERZONE_MARKER; | ||||
36 | } | ||||
37 | |||||
38 | 1 | 2µs | 1; | ||
39 | __END__ |