Filename | /var/www/foswikidev/core/lib/Foswiki/If/Parser.pm |
Statements | Executed 51 statements in 1.14ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 965µs | 15.9ms | BEGIN@16 | Foswiki::If::Parser::
1 | 1 | 1 | 422µs | 508µs | BEGIN@22 | Foswiki::If::Parser::
1 | 1 | 1 | 316µs | 361µs | BEGIN@26 | Foswiki::If::Parser::
1 | 1 | 1 | 305µs | 359µs | BEGIN@24 | Foswiki::If::Parser::
1 | 1 | 1 | 302µs | 348µs | BEGIN@25 | Foswiki::If::Parser::
1 | 1 | 1 | 296µs | 340µs | BEGIN@28 | Foswiki::If::Parser::
1 | 1 | 1 | 294µs | 338µs | BEGIN@27 | Foswiki::If::Parser::
1 | 1 | 1 | 293µs | 358µs | BEGIN@23 | Foswiki::If::Parser::
1 | 1 | 1 | 269µs | 317µs | BEGIN@29 | Foswiki::If::Parser::
1 | 1 | 1 | 238µs | 282µs | BEGIN@20 | Foswiki::If::Parser::
1 | 1 | 1 | 170µs | 1.48ms | new | Foswiki::If::Parser::
1 | 1 | 1 | 14µs | 26µs | BEGIN@13 | Foswiki::If::Parser::
1 | 1 | 1 | 11µs | 37µs | BEGIN@19 | Foswiki::If::Parser::
1 | 1 | 1 | 9µs | 13µs | BEGIN@14 | Foswiki::If::Parser::
1 | 1 | 1 | 9µs | 35µs | BEGIN@40 | Foswiki::If::Parser::
1 | 1 | 1 | 4µs | 4µs | BEGIN@31 | 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 | 27µs | 2 | 39µs | # spent 26µs (14+13) within Foswiki::If::Parser::BEGIN@13 which was called:
# once (14µs+13µs) by Foswiki::IF at line 13 # spent 26µs making 1 call to Foswiki::If::Parser::BEGIN@13
# spent 13µs making 1 call to strict::import |
14 | 2 | 23µs | 2 | 17µs | # spent 13µs (9+4) within Foswiki::If::Parser::BEGIN@14 which was called:
# once (9µs+4µs) by Foswiki::IF at line 14 # spent 13µs making 1 call to Foswiki::If::Parser::BEGIN@14
# spent 4µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 108µs | 1 | 15.9ms | # spent 15.9ms (965µs+14.9) within Foswiki::If::Parser::BEGIN@16 which was called:
# once (965µs+14.9ms) by Foswiki::IF at line 16 # spent 15.9ms making 1 call to Foswiki::If::Parser::BEGIN@16 |
17 | 1 | 6µs | our @ISA = ('Foswiki::Query::Parser'); | ||
18 | |||||
19 | 2 | 25µs | 2 | 63µs | # spent 37µs (11+26) within Foswiki::If::Parser::BEGIN@19 which was called:
# once (11µs+26µs) by Foswiki::IF at line 19 # spent 37µs making 1 call to Foswiki::If::Parser::BEGIN@19
# spent 26µs making 1 call to Exporter::import |
20 | 2 | 84µs | 1 | 282µs | # spent 282µs (238+44) within Foswiki::If::Parser::BEGIN@20 which was called:
# once (238µs+44µs) by Foswiki::IF at line 20 # spent 282µs making 1 call to Foswiki::If::Parser::BEGIN@20 |
21 | |||||
22 | 2 | 88µs | 1 | 508µs | # spent 508µs (422+86) within Foswiki::If::Parser::BEGIN@22 which was called:
# once (422µs+86µs) by Foswiki::IF at line 22 # spent 508µs making 1 call to Foswiki::If::Parser::BEGIN@22 |
23 | 2 | 85µs | 1 | 358µs | # spent 358µs (293+65) within Foswiki::If::Parser::BEGIN@23 which was called:
# once (293µs+65µs) by Foswiki::IF at line 23 # spent 358µs making 1 call to Foswiki::If::Parser::BEGIN@23 |
24 | 2 | 86µs | 1 | 359µs | # spent 359µs (305+54) within Foswiki::If::Parser::BEGIN@24 which was called:
# once (305µs+54µs) by Foswiki::IF at line 24 # spent 359µs making 1 call to Foswiki::If::Parser::BEGIN@24 |
25 | 2 | 81µs | 1 | 348µs | # spent 348µs (302+46) within Foswiki::If::Parser::BEGIN@25 which was called:
# once (302µs+46µs) by Foswiki::IF at line 25 # spent 348µs making 1 call to Foswiki::If::Parser::BEGIN@25 |
26 | 2 | 83µs | 1 | 361µs | # spent 361µs (316+45) within Foswiki::If::Parser::BEGIN@26 which was called:
# once (316µs+45µs) by Foswiki::IF at line 26 # spent 361µs making 1 call to Foswiki::If::Parser::BEGIN@26 |
27 | 2 | 87µs | 1 | 338µs | # spent 338µs (294+44) within Foswiki::If::Parser::BEGIN@27 which was called:
# once (294µs+44µs) by Foswiki::IF at line 27 # spent 338µs making 1 call to Foswiki::If::Parser::BEGIN@27 |
28 | 2 | 88µs | 1 | 340µs | # spent 340µs (296+43) within Foswiki::If::Parser::BEGIN@28 which was called:
# once (296µs+43µs) by Foswiki::IF at line 28 # spent 340µs making 1 call to Foswiki::If::Parser::BEGIN@28 |
29 | 2 | 100µs | 1 | 317µs | # spent 317µs (269+48) within Foswiki::If::Parser::BEGIN@29 which was called:
# once (269µs+48µs) by Foswiki::IF at line 29 # spent 317µs making 1 call to Foswiki::If::Parser::BEGIN@29 |
30 | |||||
31 | # spent 4µs within Foswiki::If::Parser::BEGIN@31 which was called:
# once (4µs+0s) by Foswiki::IF at line 36 | ||||
32 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
33 | require locale; | ||||
34 | import locale(); | ||||
35 | } | ||||
36 | 1 | 25µs | 1 | 4µs | } # spent 4µs making 1 call to Foswiki::If::Parser::BEGIN@31 |
37 | |||||
38 | # Additional operators specific to IF statements (not available in other | ||||
39 | # query types) | ||||
40 | 1 | 6µs | 1 | 26µs | # spent 35µs (9+26) within Foswiki::If::Parser::BEGIN@40 which was called:
# once (9µs+26µs) by Foswiki::IF at line 41 # spent 26µs making 1 call to constant::import |
41 | 1 | 76µs | 1 | 35µs | istopic isweb ); # spent 35µs making 1 call to Foswiki::If::Parser::BEGIN@40 |
42 | |||||
43 | # spent 1.48ms (170µs+1.31) within Foswiki::If::Parser::new which was called:
# once (170µs+1.31ms) by Foswiki::IF at line 21 of /var/www/foswikidev/core/lib/Foswiki/Macros/IF.pm | ||||
44 | 1 | 600ns | my ($class) = @_; | ||
45 | |||||
46 | 1 | 14µs | 1 | 1.07ms | my $this = $class->SUPER::new( { nodeClass => 'Foswiki::If::Node', } ); # spent 1.07ms making 1 call to Foswiki::Query::Parser::new |
47 | 1 | 2µs | 1 | 2µs | foreach my $op ( OPS() ) { # spent 2µs making 1 call to constant::__ANON__[constant.pm:144] |
48 | 8 | 4µs | my $on = 'Foswiki::If::OP_' . $op; | ||
49 | 8 | 32µs | 16 | 240µs | $this->addOperator( $on->new() ); # spent 34µs making 1 call to Foswiki::If::OP_context::new
# spent 29µs making 1 call to Foswiki::If::OP_defined::new
# spent 29µs making 1 call to Foswiki::If::OP_istopic::new
# spent 27µs making 1 call to Foswiki::If::OP_dollar::new
# spent 27µs making 1 call to Foswiki::If::OP_isempty::new
# spent 27µs making 1 call to Foswiki::If::OP_isweb::new
# spent 26µs making 1 call to Foswiki::If::OP_allows::new
# spent 23µs making 1 call to Foswiki::If::OP_ingroup::new
# spent 19µs making 8 calls to Foswiki::Infix::Parser::addOperator, avg 2µs/call |
50 | } | ||||
51 | |||||
52 | 1 | 3µs | return $this; | ||
53 | } | ||||
54 | |||||
55 | 1 | 3µs | 1; | ||
56 | __END__ |