← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:27:17 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/FORMFIELD.pm
StatementsExecuted 40 statements in 533µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
711233µs30.4msFoswiki::::FORMFIELDFoswiki::FORMFIELD
11139µs53µsFoswiki::::BEGIN@4Foswiki::BEGIN@4
11128µs64µsFoswiki::::BEGIN@5Foswiki::BEGIN@5
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
4265µs266µs
# spent 53µs (39+14) within Foswiki::BEGIN@4 which was called: # once (39µs+14µs) by Foswiki::_expandMacroOnTopicRendering at line 4
use strict;
# spent 53µs making 1 call to Foswiki::BEGIN@4 # spent 14µs making 1 call to strict::import
52268µs2100µs
# spent 64µs (28+36) within Foswiki::BEGIN@5 which was called: # once (28µs+36µs) by Foswiki::_expandMacroOnTopicRendering at line 5
use warnings;
# spent 64µs making 1 call to Foswiki::BEGIN@5 # spent 36µs making 1 call to warnings::import
6
7
# spent 30.4ms (233µs+30.2) within Foswiki::FORMFIELD which was called 7 times, avg 4.34ms/call: # 7 times (233µs+30.2ms) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm, avg 4.34ms/call
sub FORMFIELD {
8713µs my ( $this, $args, $topicObject ) = @_;
9721µs if ( $args->{topic} ) {
10 my $web = $args->{web} || $topicObject->web;
11 my $topic = $args->{topic};
12 ( $web, $topic ) = $this->normalizeWebTopicName( $web, $topic );
13 $topicObject = new Foswiki::Meta( $this, $web, $topic );
14 }
15 else {
16
17 # SMELL: horrible hack; assumes the current rev comes from the 'rev'
18 # parameter. There has to be a better way!
19712µs my $query = $this->{request};
20745µs7345µs $args->{rev} ||= $query->param('rev') if ($query);
# spent 345µs making 7 calls to Foswiki::Request::param, avg 49µs/call
21 }
227104µs1429.8ms return $this->renderer->renderFORMFIELD( $args, $topicObject );
# spent 20.3ms making 7 calls to Foswiki::renderer, avg 2.91ms/call # spent 9.48ms making 7 calls to Foswiki::Render::renderFORMFIELD, avg 1.35ms/call
23}
24
2515µs1;
26
27__END__