Filename | /var/www/foswiki11/lib/Foswiki/If/Node.pm |
Statements | Executed 143 statements in 479µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
45 | 4 | 4 | 130µs | 130µs | _evaluate | Foswiki::If::Node::
1 | 1 | 1 | 23µs | 46µs | BEGIN@13 | Foswiki::If::Node::
1 | 1 | 1 | 14µs | 23µs | BEGIN@14 | Foswiki::If::Node::
1 | 1 | 1 | 6µs | 6µs | BEGIN@16 | Foswiki::If::Node::
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 | |||||
7 | Node class for the result of an If statement parse | ||||
8 | |||||
9 | =cut | ||||
10 | |||||
11 | package Foswiki::If::Node; | ||||
12 | |||||
13 | 2 | 46µs | 2 | 69µ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 # spent 46µs making 1 call to Foswiki::If::Node::BEGIN@13
# spent 23µs making 1 call to strict::import |
14 | 2 | 40µs | 2 | 32µ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 # spent 23µs making 1 call to Foswiki::If::Node::BEGIN@14
# spent 9µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 171µs | 1 | 6µ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 # spent 6µs making 1 call to Foswiki::If::Node::BEGIN@16 |
17 | 1 | 12µs | our @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 | ||||
22 | 45 | 13µs | my $this = shift; | ||
23 | 45 | 7µs | my $result; | ||
24 | |||||
25 | 45 | 185µ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 | |||||
36 | 1 | 5µs | 1; | ||
37 | __END__ |