Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/Node.pm |
Statements | Executed 200 statements in 958µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
64 | 4 | 4 | 573µs | 573µs | _evaluate | Foswiki::If::Node::
1 | 1 | 1 | 23µs | 31µs | BEGIN@13 | Foswiki::If::Node::
1 | 1 | 1 | 22µs | 40µs | BEGIN@14 | Foswiki::If::Node::
1 | 1 | 1 | 9µs | 9µ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 | 45µs | 2 | 38µ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 # spent 31µs making 1 call to Foswiki::If::Node::BEGIN@13
# spent 7µs making 1 call to strict::import |
14 | 2 | 43µs | 2 | 59µ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 # spent 40µs making 1 call to Foswiki::If::Node::BEGIN@14
# spent 18µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 160µs | 1 | 9µ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 # spent 9µs making 1 call to Foswiki::If::Node::BEGIN@16 |
17 | 1 | 11µs | our @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 | ||||
22 | 128 | 265µs | my $this = shift; | ||
23 | |||||
24 | 64 | 428µ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 | |||||
35 | 1 | 6µs | 1; | ||
36 | __END__ |