← 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/Text.pm
StatementsExecuted 50 statements in 638µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
611233µs575µsFoswiki::Form::Text::::newFoswiki::Form::Text::new
11127µs34µsFoswiki::Form::Text::::BEGIN@4Foswiki::Form::Text::BEGIN@4
11119µs37µsFoswiki::Form::Text::::BEGIN@5Foswiki::Form::Text::BEGIN@5
61116µs16µsFoswiki::Form::Text::::CORE:substFoswiki::Form::Text::CORE:subst (opcode)
1119µs9µsFoswiki::Form::Text::::BEGIN@7Foswiki::Form::Text::BEGIN@7
0000s0sFoswiki::Form::Text::::renderForEditFoswiki::Form::Text::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::Text;
3
4249µs241µs
# spent 34µs (27+7) within Foswiki::Form::Text::BEGIN@4 which was called: # once (27µs+7µs) by Foswiki::Form::createField at line 4
use strict;
# spent 34µs making 1 call to Foswiki::Form::Text::BEGIN@4 # spent 7µs making 1 call to strict::import
5249µs255µs
# spent 37µs (19+18) within Foswiki::Form::Text::BEGIN@5 which was called: # once (19µs+18µs) by Foswiki::Form::createField at line 5
use warnings;
# spent 37µs making 1 call to Foswiki::Form::Text::BEGIN@5 # spent 18µs making 1 call to warnings::import
6
72249µs19µs
# spent 9µs within Foswiki::Form::Text::BEGIN@7 which was called: # once (9µs+0s) by Foswiki::Form::createField at line 7
use Foswiki::Form::FieldDefinition ();
# spent 9µs making 1 call to Foswiki::Form::Text::BEGIN@7
8122µsour @ISA = ('Foswiki::Form::FieldDefinition');
9
10
# spent 575µs (233+342) within Foswiki::Form::Text::new which was called 6 times, avg 96µs/call: # 6 times (233µs+342µs) by Foswiki::Form::createField at line 311 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Form.pm, avg 96µs/call
sub new {
11614µs my $class = shift;
12679µs6326µs my $this = $class->SUPER::new(@_);
# spent 326µs making 6 calls to Foswiki::Form::FieldDefinition::new, avg 54µs/call
13621µs my $size = $this->{size} || '';
14652µs616µs $size =~ s/\D//g;
# spent 16µs making 6 calls to Foswiki::Form::Text::CORE:subst, avg 3µs/call
15622µs $size = 10 if ( !$size || $size < 1 );
16614µs $this->{size} = $size;
17644µs return $this;
18}
19
20sub renderForEdit {
21 my ( $this, $topicObject, $value ) = @_;
22
23 return (
24 '',
25 CGI::textfield(
26 -class => $this->cssClasses('foswikiInputField'),
27 -name => $this->{name},
28 -size => $this->{size},
29 -value => $value
30 )
31 );
32}
33
34125µs1;
35__END__
 
# spent 16µs within Foswiki::Form::Text::CORE:subst which was called 6 times, avg 3µs/call: # 6 times (16µs+0s) by Foswiki::Form::Text::new at line 14, avg 3µs/call
sub Foswiki::Form::Text::CORE:subst; # opcode