← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:10 2015

Filename/var/www/foswiki11/lib/Foswiki/If/Node.pm
StatementsExecuted 143 statements in 479µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4544130µs130µsFoswiki::If::Node::::_evaluateFoswiki::If::Node::_evaluate
11123µs46µsFoswiki::If::Node::::BEGIN@13Foswiki::If::Node::BEGIN@13
11114µs23µsFoswiki::If::Node::::BEGIN@14Foswiki::If::Node::BEGIN@14
1116µs6µ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
13246µs269µs
# spent 46µs (23+23) within Foswiki::If::Node::BEGIN@13 which was called: # once (23µs+23µs) by Foswiki::If::Parser::BEGIN@20 at line 13
use strict;
# spent 46µs making 1 call to Foswiki::If::Node::BEGIN@13 # spent 23µs making 1 call to strict::import
14240µs232µs
# spent 23µs (14+9) within Foswiki::If::Node::BEGIN@14 which was called: # once (14µs+9µs) by Foswiki::If::Parser::BEGIN@20 at line 14
use warnings;
# spent 23µs making 1 call to Foswiki::If::Node::BEGIN@14 # spent 9µs making 1 call to warnings::import
15
162171µs16µs
# spent 6µs within Foswiki::If::Node::BEGIN@16 which was called: # once (6µs+0s) by Foswiki::If::Parser::BEGIN@20 at line 16
use Foswiki::Query::Node ();
# spent 6µs making 1 call to Foswiki::If::Node::BEGIN@16
17112µsour @ISA = ('Foswiki::Query::Node');
18
19# Used wherever a plain string is expected, this method suppresses automatic
20# lookup of names in meta-data
21
# spent 130µs within Foswiki::If::Node::_evaluate which was called 45 times, avg 3µs/call: # 18 times (54µs+0s) by Foswiki::If::OP_dollar::evaluate at line 34 of /var/www/foswiki11/lib/Foswiki/If/OP_dollar.pm, avg 3µs/call # 12 times (29µs+0s) by Foswiki::If::OP_defined::evaluate at line 31 of /var/www/foswiki11/lib/Foswiki/If/OP_defined.pm, avg 2µs/call # 8 times (27µs+0s) by Foswiki::If::OP_context::evaluate at line 30 of /var/www/foswiki11/lib/Foswiki/If/OP_context.pm, avg 3µs/call # 7 times (19µs+0s) by Foswiki::If::OP_istopic::evaluate at line 31 of /var/www/foswiki11/lib/Foswiki/If/OP_istopic.pm, avg 3µs/call
sub _evaluate {
224513µs my $this = shift;
23457µs my $result;
24
2545185µs if ( !ref( $this->{op} ) ) {
26 return $this->{params}[0];
27 }
28 else {
29 if ( $this->{op}->{name} eq '(' ) {
30 return $this->{params}[0]->_evaluate(@_);
31 }
32 return $this->evaluate(@_);
33 }
34}
35
3615µs1;
37__END__