Filename | /var/www/foswikidev/core/lib/Foswiki/Query/UnaryOP.pm |
Statements | Executed 69 statements in 424µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
30 | 14 | 14 | 225µs | 408µs | new | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 12µs | 24µs | BEGIN@4 | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 8µs | 12µs | BEGIN@5 | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 7µs | 7µs | BEGIN@6 | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 4µs | 4µs | BEGIN@9 | Foswiki::Query::UnaryOP::
0 | 0 | 0 | 0s | 0s | evalUnary | Foswiki::Query::UnaryOP::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | package Foswiki::Query::UnaryOP; | ||||
3 | |||||
4 | 2 | 25µs | 2 | 36µs | # spent 24µs (12+12) within Foswiki::Query::UnaryOP::BEGIN@4 which was called:
# once (12µs+12µs) by Foswiki::Query::OP_not::BEGIN@14 at line 4 # spent 24µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@4
# spent 12µs making 1 call to strict::import |
5 | 2 | 23µs | 2 | 16µs | # spent 12µs (8+4) within Foswiki::Query::UnaryOP::BEGIN@5 which was called:
# once (8µs+4µs) by Foswiki::Query::OP_not::BEGIN@14 at line 5 # spent 12µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@5
# spent 4µs making 1 call to warnings::import |
6 | 2 | 57µs | 1 | 7µs | # spent 7µs within Foswiki::Query::UnaryOP::BEGIN@6 which was called:
# once (7µs+0s) by Foswiki::Query::OP_not::BEGIN@14 at line 6 # spent 7µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@6 |
7 | 1 | 6µs | our @ISA = ('Foswiki::Query::OP'); | ||
8 | |||||
9 | # spent 4µs within Foswiki::Query::UnaryOP::BEGIN@9 which was called:
# once (4µs+0s) by Foswiki::Query::OP_not::BEGIN@14 at line 14 | ||||
10 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
11 | require locale; | ||||
12 | import locale(); | ||||
13 | } | ||||
14 | 1 | 80µs | 1 | 4µs | } # spent 4µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@9 |
15 | |||||
16 | # spent 408µs (225+183) within Foswiki::Query::UnaryOP::new which was called 30 times, avg 14µs/call:
# 3 times (41µs+21µs) by Foswiki::Query::OP_lc::new at line 27 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_lc.pm, avg 21µs/call
# 3 times (23µs+23µs) by Foswiki::Query::OP_int::new at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_int.pm, avg 15µs/call
# 3 times (22µs+17µs) by Foswiki::Query::OP_d2n::new at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_d2n.pm, avg 13µs/call
# 3 times (19µs+20µs) by Foswiki::Query::OP_ob::new at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_ob.pm, avg 13µs/call
# 3 times (21µs+16µs) by Foswiki::Query::OP_neg::new at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_neg.pm, avg 12µs/call
# 3 times (19µs+16µs) by Foswiki::Query::OP_not::new at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_not.pm, avg 12µs/call
# 3 times (19µs+16µs) by Foswiki::Query::OP_uc::new at line 27 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_uc.pm, avg 12µs/call
# 3 times (19µs+14µs) by Foswiki::Query::OP_length::new at line 19 of /var/www/foswikidev/core/lib/Foswiki/Query/OP_length.pm, avg 11µs/call
# once (8µs+8µs) by Foswiki::If::OP_context::new at line 26 of /var/www/foswikidev/core/lib/Foswiki/If/OP_context.pm
# once (7µs+7µs) by Foswiki::If::OP_defined::new at line 26 of /var/www/foswikidev/core/lib/Foswiki/If/OP_defined.pm
# once (7µs+7µs) by Foswiki::If::OP_isempty::new at line 26 of /var/www/foswikidev/core/lib/Foswiki/If/OP_isempty.pm
# once (6µs+7µs) by Foswiki::If::OP_dollar::new at line 26 of /var/www/foswikidev/core/lib/Foswiki/If/OP_dollar.pm
# once (7µs+6µs) by Foswiki::If::OP_istopic::new at line 26 of /var/www/foswikidev/core/lib/Foswiki/If/OP_istopic.pm
# once (6µs+6µs) by Foswiki::If::OP_isweb::new at line 26 of /var/www/foswikidev/core/lib/Foswiki/If/OP_isweb.pm | ||||
17 | 30 | 8µs | my $class = shift; | ||
18 | 30 | 217µs | 30 | 183µs | return $class->SUPER::new( arity => 1, @_ ); # spent 183µs making 30 calls to Foswiki::Query::OP::new, avg 6µs/call |
19 | } | ||||
20 | |||||
21 | sub evalUnary { | ||||
22 | my $this = shift; | ||||
23 | my $node = shift; | ||||
24 | my $sub = shift; | ||||
25 | my $a = $node->{params}[0]->evaluate(@_); | ||||
26 | return $this->collect( $a, $sub ); | ||||
27 | } | ||||
28 | |||||
29 | 1 | 3µs | 1; | ||
30 | __END__ |