← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:15 2015

Filename/var/www/foswikidev/core/lib/Foswiki/Macros/RENDERZONE.pm
StatementsExecuted 14 statements in 187µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs31µsFoswiki::::BEGIN@4.62Foswiki::BEGIN@4.62
21111µs11µsFoswiki::::RENDERZONEFoswiki::RENDERZONE
1118µs13µsFoswiki::::BEGIN@5.63Foswiki::BEGIN@5.63
1114µs4µsFoswiki::::BEGIN@7.64Foswiki::BEGIN@7.64
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# See bottom of file for license and copyright information
2package Foswiki;
3
4228µs244µ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
use strict;
# spent 31µs making 1 call to Foswiki::BEGIN@4.62 # spent 13µs making 1 call to strict::import
5246µs217µ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
use warnings;
# 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
BEGIN {
815µs if ( $Foswiki::cfg{UseLocale} ) {
9 require locale;
10 import locale();
11 }
12190µs14µ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
sub RENDERZONE {
1521µ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
2522µs my $id = scalar( keys %{ $this->{_renderZonePlaceholder} } );
26
2723µs $this->{_renderZonePlaceholder}{$id} = {
28 params => $params,
29 topicObject => $topicObject,
30 };
31
32 return
3328µs $Foswiki::RENDERZONE_MARKER
34 . "RENDERZONE{$id}"
35 . $Foswiki::RENDERZONE_MARKER;
36}
37
3812µs1;
39__END__