← 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:25 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Form/Label.pm
StatementsExecuted 8 statements in 319µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11132µs43µsFoswiki::Form::Label::::BEGIN@4Foswiki::Form::Label::BEGIN@4
11120µs44µsFoswiki::Form::Label::::BEGIN@5Foswiki::Form::Label::BEGIN@5
11110µs10µsFoswiki::Form::Label::::BEGIN@7Foswiki::Form::Label::BEGIN@7
0000s0sFoswiki::Form::Label::::isEditableFoswiki::Form::Label::isEditable
0000s0sFoswiki::Form::Label::::renderForEditFoswiki::Form::Label::renderForEdit
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::Form::Label;
3
4256µs254µs
# spent 43µs (32+11) within Foswiki::Form::Label::BEGIN@4 which was called: # once (32µs+11µs) by Foswiki::Form::createField at line 4
use strict;
# spent 43µs making 1 call to Foswiki::Form::Label::BEGIN@4 # spent 11µs making 1 call to strict::import
5249µs269µs
# spent 44µs (20+24) within Foswiki::Form::Label::BEGIN@5 which was called: # once (20µs+24µs) by Foswiki::Form::createField at line 5
use warnings;
# spent 44µs making 1 call to Foswiki::Form::Label::BEGIN@5 # spent 24µs making 1 call to warnings::import
6
72197µs110µs
# spent 10µs within Foswiki::Form::Label::BEGIN@7 which was called: # once (10µs+0s) by Foswiki::Form::createField at line 7
use Foswiki::Form::FieldDefinition ();
# spent 10µs making 1 call to Foswiki::Form::Label::BEGIN@7
8111µsour @ISA = ('Foswiki::Form::FieldDefinition');
9
10sub isEditable {
11 return 0;
12}
13
14sub renderForEdit {
15 my ( $this, $topicObject, $value ) = @_;
16
17 # Changing labels through the URL is a feature for Foswiki applications,
18 # even though it's not accessible for standard edits. Some contribs
19 # may want to override this to make labels editable.
20 my $renderedValue =
21 $topicObject->renderTML( $topicObject->expandMacros($value) );
22 return (
23 '',
24 CGI::hidden(
25 -name => $this->{name},
26 -value => $value
27 )
28 . CGI::div( {}, $renderedValue )
29 );
30}
31
3216µs1;
33__END__