Filename | /var/www/foswiki11/lib/Foswiki/If/Parser.pm |
Statements | Executed 41 statements in 1.01ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 3.68ms | 30.5ms | new | Foswiki::If::Parser::
1 | 1 | 1 | 581µs | 7.89ms | BEGIN@16 | Foswiki::If::Parser::
1 | 1 | 1 | 367µs | 442µs | BEGIN@20 | Foswiki::If::Parser::
1 | 1 | 1 | 26µs | 50µs | BEGIN@13 | Foswiki::If::Parser::
1 | 1 | 1 | 17µs | 40µs | BEGIN@19 | Foswiki::If::Parser::
1 | 1 | 1 | 16µs | 26µ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 | 50µs | 2 | 74µs | # spent 50µs (26+24) within Foswiki::If::Parser::BEGIN@13 which was called:
# once (26µs+24µs) by Foswiki::IF at line 13 # spent 50µs making 1 call to Foswiki::If::Parser::BEGIN@13
# spent 24µs making 1 call to strict::import |
14 | 2 | 44µs | 2 | 35µs | # spent 26µs (16+10) within Foswiki::If::Parser::BEGIN@14 which was called:
# once (16µs+10µs) by Foswiki::IF at line 14 # spent 26µs making 1 call to Foswiki::If::Parser::BEGIN@14
# spent 10µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 194µs | 1 | 7.89ms | # spent 7.89ms (581µs+7.31) within Foswiki::If::Parser::BEGIN@16 which was called:
# once (581µs+7.31ms) by Foswiki::IF at line 16 # spent 7.89ms making 1 call to Foswiki::If::Parser::BEGIN@16 |
17 | 1 | 11µs | our @ISA = ('Foswiki::Query::Parser'); | ||
18 | |||||
19 | 2 | 41µs | 2 | 64µs | # spent 40µs (17+23) within Foswiki::If::Parser::BEGIN@19 which was called:
# once (17µs+23µs) by Foswiki::IF at line 19 # spent 40µs making 1 call to Foswiki::If::Parser::BEGIN@19
# spent 23µs making 1 call to Assert::import |
20 | 2 | 304µs | 1 | 442µs | # spent 442µs (367+75) within Foswiki::If::Parser::BEGIN@20 which was called:
# once (367µs+75µs) by Foswiki::IF at line 20 # spent 442µs making 1 call to Foswiki::If::Parser::BEGIN@20 |
21 | |||||
22 | # spent 30.5ms (3.68+26.8) within Foswiki::If::Parser::new which was called:
# once (3.68ms+26.8ms) by Foswiki::IF at line 14 of /var/www/foswiki11/lib/Foswiki/Macros/IF.pm | ||||
23 | 1 | 1µs | my ($class) = @_; | ||
24 | |||||
25 | 1 | 32µs | 1 | 25.8ms | my $this = $class->SUPER::new( { nodeClass => 'Foswiki::If::Node', } ); # spent 25.8ms making 1 call to Foswiki::Query::Parser::new |
26 | 1 | 1µs | die "{Operators}{If} is undefined; re-run configure" | ||
27 | unless defined( $Foswiki::cfg{Operators}{If} ); | ||||
28 | 1 | 4µs | foreach my $op ( @{ $Foswiki::cfg{Operators}{If} } ) { | ||
29 | 8 | 239µs | eval "require $op"; # spent 108µs executing statements in string eval
# spent 100µs executing statements in string eval
# spent 98µs executing statements in string eval
# spent 97µs executing statements in string eval
# spent 95µs executing statements in string eval
# spent 95µs executing statements in string eval
# spent 94µs executing statements in string eval
# spent 93µs executing statements in string eval | ||
30 | 8 | 20µs | 8 | 18µs | ASSERT( !$@ ) if DEBUG; # spent 18µs making 8 calls to Assert::ASSERTS_OFF, avg 2µs/call |
31 | 8 | 58µs | 16 | 435µs | $this->addOperator( $op->new() ); # spent 58µs making 1 call to Foswiki::If::OP_dollar::new
# spent 52µs making 1 call to Foswiki::If::OP_allows::new
# spent 50µs making 1 call to Foswiki::If::OP_defined::new
# spent 50µs making 1 call to Foswiki::If::OP_context::new
# spent 49µs making 1 call to Foswiki::If::OP_istopic::new
# spent 48µs making 1 call to Foswiki::If::OP_isempty::new
# spent 48µs making 1 call to Foswiki::If::OP_ingroup::new
# spent 47µs making 1 call to Foswiki::If::OP_isweb::new
# spent 32µs making 8 calls to Foswiki::Infix::Parser::addOperator, avg 4µs/call |
32 | } | ||||
33 | |||||
34 | 1 | 6µs | return $this; | ||
35 | } | ||||
36 | |||||
37 | 1 | 4µs | 1; | ||
38 | __END__ |