Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/UnaryOP.pm |
Statements | Executed 68 statements in 700µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
30 | 14 | 14 | 439µs | 897µs | new | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 24µs | 31µs | BEGIN@4 | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 16µs | 33µs | BEGIN@5 | Foswiki::Query::UnaryOP::
1 | 1 | 1 | 15µs | 15µs | BEGIN@6 | 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 | 44µs | 2 | 38µs | # spent 31µs (24+7) within Foswiki::Query::UnaryOP::BEGIN@4 which was called:
# once (24µs+7µs) by Foswiki::Query::OP_not::BEGIN@14 at line 4 # spent 31µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@4
# spent 7µs making 1 call to strict::import |
5 | 2 | 49µs | 2 | 50µs | # spent 33µs (16+17) within Foswiki::Query::UnaryOP::BEGIN@5 which was called:
# once (16µs+17µs) by Foswiki::Query::OP_not::BEGIN@14 at line 5 # spent 33µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@5
# spent 17µs making 1 call to warnings::import |
6 | 2 | 173µs | 1 | 15µs | # spent 15µs within Foswiki::Query::UnaryOP::BEGIN@6 which was called:
# once (15µs+0s) by Foswiki::Query::OP_not::BEGIN@14 at line 6 # spent 15µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@6 |
7 | 1 | 9µs | our @ISA = ('Foswiki::Query::OP'); | ||
8 | |||||
9 | # spent 897µs (439+459) within Foswiki::Query::UnaryOP::new which was called 30 times, avg 30µs/call:
# 3 times (80µs+54µs) by Foswiki::Query::OP_lc::new at line 20 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_lc.pm, avg 45µs/call
# 3 times (40µs+54µs) by Foswiki::Query::OP_d2n::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_d2n.pm, avg 31µs/call
# 3 times (40µs+44µs) by Foswiki::Query::OP_not::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_not.pm, avg 28µs/call
# 3 times (40µs+43µs) by Foswiki::Query::OP_ob::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_ob.pm, avg 28µs/call
# 3 times (39µs+43µs) by Foswiki::Query::OP_length::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_length.pm, avg 27µs/call
# 3 times (40µs+40µs) by Foswiki::Query::OP_uc::new at line 20 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_uc.pm, avg 27µs/call
# 3 times (38µs+42µs) by Foswiki::Query::OP_int::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_int.pm, avg 27µs/call
# 3 times (39µs+39µs) by Foswiki::Query::OP_neg::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_neg.pm, avg 26µs/call
# once (14µs+20µs) by Foswiki::If::OP_istopic::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_istopic.pm
# once (14µs+16µs) by Foswiki::If::OP_isweb::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_isweb.pm
# once (14µs+16µs) by Foswiki::If::OP_defined::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_defined.pm
# once (13µs+16µs) by Foswiki::If::OP_context::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_context.pm
# once (14µs+15µs) by Foswiki::If::OP_isempty::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_isempty.pm
# once (13µs+16µs) by Foswiki::If::OP_dollar::new at line 19 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/If/OP_dollar.pm | ||||
10 | 60 | 420µs | my $class = shift; | ||
11 | 30 | 458µs | return $class->SUPER::new( arity => 1, @_ ); # spent 458µs making 30 calls to Foswiki::Query::OP::new, avg 15µs/call | ||
12 | } | ||||
13 | |||||
14 | sub evalUnary { | ||||
15 | my $this = shift; | ||||
16 | my $node = shift; | ||||
17 | my $sub = shift; | ||||
18 | my $a = $node->{params}[0]->evaluate(@_); | ||||
19 | return $this->collect( $a, $sub ); | ||||
20 | } | ||||
21 | |||||
22 | 1 | 6µs | 1; | ||
23 | __END__ |