← 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:26:55 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/If/Node.pm
StatementsExecuted 200 statements in 958µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
6444573µs573µsFoswiki::If::Node::::_evaluateFoswiki::If::Node::_evaluate
11123µs31µsFoswiki::If::Node::::BEGIN@13Foswiki::If::Node::BEGIN@13
11122µs40µsFoswiki::If::Node::::BEGIN@14Foswiki::If::Node::BEGIN@14
1119µs9µsFoswiki::If::Node::::BEGIN@16Foswiki::If::Node::BEGIN@16
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
2
3=begin TML
4
5---+ package Foswiki::If::Node
6
7Node class for the result of an If statement parse
8
9=cut
10
11package Foswiki::If::Node;
12
13245µs238µs
# spent 31µs (23+7) within Foswiki::If::Node::BEGIN@13 which was called: # once (23µs+7µs) by Foswiki::If::Parser::BEGIN@20 at line 13
use strict;
# spent 31µs making 1 call to Foswiki::If::Node::BEGIN@13 # spent 7µs making 1 call to strict::import
14243µs259µs
# spent 40µs (22+18) within Foswiki::If::Node::BEGIN@14 which was called: # once (22µs+18µs) by Foswiki::If::Parser::BEGIN@20 at line 14
use warnings;
# spent 40µs making 1 call to Foswiki::If::Node::BEGIN@14 # spent 18µs making 1 call to warnings::import
15
162160µs19µs
# spent 9µs within Foswiki::If::Node::BEGIN@16 which was called: # once (9µs+0s) by Foswiki::If::Parser::BEGIN@20 at line 16
use Foswiki::Query::Node ();
# spent 9µs making 1 call to Foswiki::If::Node::BEGIN@16
17111µsour @ISA = ('Foswiki::Query::Node');
18
19# Used wherever a plain string is expected, this method
20# suppresses automatic lookup of names in meta-data
21
# spent 573µs within Foswiki::If::Node::_evaluate which was called 64 times, avg 9µs/call: # 33 times (306µs+0s) by Foswiki::If::OP_context::evaluate at line 30 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_context.pm, avg 9µs/call # 15 times (124µs+0s) by Foswiki::If::OP_dollar::evaluate at line 34 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_dollar.pm, avg 8µs/call # 10 times (93µs+0s) by Foswiki::If::OP_defined::evaluate at line 33 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_defined.pm, avg 9µs/call # 6 times (50µs+0s) by Foswiki::If::OP_istopic::evaluate at line 31 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_istopic.pm, avg 8µs/call
sub _evaluate {
22128265µs my $this = shift;
23
2464428µs if ( !ref( $this->{op} ) ) {
25 return $this->{params}[0];
26 }
27 else {
28 if ( $this->{op}->{name} eq '(' ) {
29 return $this->{params}[0]->_evaluate(@_);
30 }
31 return $this->evaluate(@_);
32 }
33}
34
3516µs1;
36__END__