Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/Parser.pm |
Statements | Executed 50 statements in 1.95ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 1.56ms | 32.9ms | BEGIN@16 | Foswiki::If::Parser::
1 | 1 | 1 | 726µs | 898µs | BEGIN@22 | Foswiki::If::Parser::
1 | 1 | 1 | 471µs | 546µs | BEGIN@25 | Foswiki::If::Parser::
1 | 1 | 1 | 469µs | 546µs | BEGIN@26 | Foswiki::If::Parser::
1 | 1 | 1 | 468µs | 543µs | BEGIN@24 | Foswiki::If::Parser::
1 | 1 | 1 | 444µs | 568µs | BEGIN@28 | Foswiki::If::Parser::
1 | 1 | 1 | 435µs | 509µs | BEGIN@27 | Foswiki::If::Parser::
1 | 1 | 1 | 422µs | 506µs | BEGIN@23 | Foswiki::If::Parser::
1 | 1 | 1 | 408µs | 483µs | BEGIN@29 | Foswiki::If::Parser::
1 | 1 | 1 | 331µs | 412µs | BEGIN@20 | Foswiki::If::Parser::
1 | 1 | 1 | 213µs | 3.54ms | new | Foswiki::If::Parser::
1 | 1 | 1 | 28µs | 35µs | BEGIN@13 | Foswiki::If::Parser::
1 | 1 | 1 | 20µs | 65µs | BEGIN@19 | Foswiki::If::Parser::
1 | 1 | 1 | 17µs | 103µs | BEGIN@33 | Foswiki::If::Parser::
1 | 1 | 1 | 16µs | 34µs | BEGIN@14 | Foswiki::If::Parser::
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::Parser | ||||
6 | |||||
7 | Support for the conditions in %IF{} statements. | ||||
8 | |||||
9 | =cut | ||||
10 | |||||
11 | package Foswiki::If::Parser; | ||||
12 | |||||
13 | 2 | 51µs | 2 | 42µs | # spent 35µs (28+7) within Foswiki::If::Parser::BEGIN@13 which was called:
# once (28µs+7µs) by Foswiki::IF at line 13 # spent 35µs making 1 call to Foswiki::If::Parser::BEGIN@13
# spent 7µs making 1 call to strict::import |
14 | 2 | 42µs | 2 | 52µs | # spent 34µs (16+18) within Foswiki::If::Parser::BEGIN@14 which was called:
# once (16µs+18µs) by Foswiki::IF at line 14 # spent 34µs making 1 call to Foswiki::If::Parser::BEGIN@14
# spent 18µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 191µs | 1 | 32.9ms | # spent 32.9ms (1.56+31.4) within Foswiki::If::Parser::BEGIN@16 which was called:
# once (1.56ms+31.4ms) by Foswiki::IF at line 16 # spent 32.9ms making 1 call to Foswiki::If::Parser::BEGIN@16 |
17 | 1 | 11µs | our @ISA = ('Foswiki::Query::Parser'); | ||
18 | |||||
19 | 2 | 46µs | 2 | 110µs | # spent 65µs (20+45) within Foswiki::If::Parser::BEGIN@19 which was called:
# once (20µs+45µs) by Foswiki::IF at line 19 # spent 65µs making 1 call to Foswiki::If::Parser::BEGIN@19
# spent 45µs making 1 call to Assert::import |
20 | 2 | 141µs | 1 | 412µs | # spent 412µs (331+80) within Foswiki::If::Parser::BEGIN@20 which was called:
# once (331µs+80µs) by Foswiki::IF at line 20 # spent 412µs making 1 call to Foswiki::If::Parser::BEGIN@20 |
21 | |||||
22 | 2 | 147µs | 1 | 898µs | # spent 898µs (726+172) within Foswiki::If::Parser::BEGIN@22 which was called:
# once (726µs+172µs) by Foswiki::IF at line 22 # spent 898µs making 1 call to Foswiki::If::Parser::BEGIN@22 |
23 | 2 | 149µs | 1 | 506µs | # spent 506µs (422+84) within Foswiki::If::Parser::BEGIN@23 which was called:
# once (422µs+84µs) by Foswiki::IF at line 23 # spent 506µs making 1 call to Foswiki::If::Parser::BEGIN@23 |
24 | 2 | 138µs | 1 | 543µs | # spent 543µs (468+75) within Foswiki::If::Parser::BEGIN@24 which was called:
# once (468µs+75µs) by Foswiki::IF at line 24 # spent 543µs making 1 call to Foswiki::If::Parser::BEGIN@24 |
25 | 2 | 138µs | 1 | 546µs | # spent 546µs (471+74) within Foswiki::If::Parser::BEGIN@25 which was called:
# once (471µs+74µs) by Foswiki::IF at line 25 # spent 546µs making 1 call to Foswiki::If::Parser::BEGIN@25 |
26 | 2 | 146µs | 1 | 546µs | # spent 546µs (469+77) within Foswiki::If::Parser::BEGIN@26 which was called:
# once (469µs+77µs) by Foswiki::IF at line 26 # spent 546µs making 1 call to Foswiki::If::Parser::BEGIN@26 |
27 | 2 | 137µs | 1 | 509µs | # spent 509µs (435+75) within Foswiki::If::Parser::BEGIN@27 which was called:
# once (435µs+75µs) by Foswiki::IF at line 27 # spent 509µs making 1 call to Foswiki::If::Parser::BEGIN@27 |
28 | 2 | 134µs | 1 | 568µs | # spent 568µs (444+124) within Foswiki::If::Parser::BEGIN@28 which was called:
# once (444µs+124µs) by Foswiki::IF at line 28 # spent 568µs making 1 call to Foswiki::If::Parser::BEGIN@28 |
29 | 2 | 155µs | 1 | 483µs | # spent 483µs (408+75) within Foswiki::If::Parser::BEGIN@29 which was called:
# once (408µs+75µs) by Foswiki::IF at line 29 # spent 483µs making 1 call to Foswiki::If::Parser::BEGIN@29 |
30 | |||||
31 | # Additional operators specific to IF statements (not available in other | ||||
32 | # query types) | ||||
33 | 1 | 85µs | # spent 103µs (17+85) within Foswiki::If::Parser::BEGIN@33 which was called:
# once (17µs+85µs) by Foswiki::IF at line 34 # spent 85µs making 1 call to constant::import | ||
34 | 2 | 147µs | 1 | 103µs | istopic isweb ); # spent 103µs making 1 call to Foswiki::If::Parser::BEGIN@33 |
35 | |||||
36 | # spent 3.54ms (213µs+3.33) within Foswiki::If::Parser::new which was called:
# once (213µs+3.33ms) by Foswiki::IF at line 14 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/IF.pm | ||||
37 | 20 | 176µs | my ($class) = @_; | ||
38 | |||||
39 | 1 | 2.78ms | my $this = $class->SUPER::new( { nodeClass => 'Foswiki::If::Node', } ); # spent 2.78ms making 1 call to Foswiki::Query::Parser::new | ||
40 | 1 | 7µs | foreach my $op ( OPS() ) { # spent 7µs making 1 call to constant::__ANON__[constant.pm:140] | ||
41 | my $on = 'Foswiki::If::OP_' . $op; | ||||
42 | 16 | 537µs | $this->addOperator( $on->new() ); # spent 85µs making 8 calls to Foswiki::Infix::Parser::addOperator, avg 11µs/call
# spent 66µs making 1 call to Foswiki::If::OP_istopic::new
# spent 63µs making 1 call to Foswiki::If::OP_isweb::new
# spent 62µs making 1 call to Foswiki::If::OP_defined::new
# spent 60µs making 1 call to Foswiki::If::OP_isempty::new
# spent 57µs making 1 call to Foswiki::If::OP_context::new
# spent 57µs making 1 call to Foswiki::If::OP_dollar::new
# spent 46µs making 1 call to Foswiki::If::OP_allows::new
# spent 43µs making 1 call to Foswiki::If::OP_ingroup::new | ||
43 | } | ||||
44 | |||||
45 | return $this; | ||||
46 | } | ||||
47 | |||||
48 | 1 | 7µs | 1; | ||
49 | __END__ |