← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:27:18 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/UnaryOP.pm
StatementsExecuted 68 statements in 700µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
301414439µs897µsFoswiki::Query::UnaryOP::::newFoswiki::Query::UnaryOP::new
11124µs31µsFoswiki::Query::UnaryOP::::BEGIN@4Foswiki::Query::UnaryOP::BEGIN@4
11116µs33µsFoswiki::Query::UnaryOP::::BEGIN@5Foswiki::Query::UnaryOP::BEGIN@5
11115µs15µsFoswiki::Query::UnaryOP::::BEGIN@6Foswiki::Query::UnaryOP::BEGIN@6
0000s0sFoswiki::Query::UnaryOP::::evalUnaryFoswiki::Query::UnaryOP::evalUnary
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# See bottom of file for license and copyright information
2package Foswiki::Query::UnaryOP;
3
4244µs238µ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
use strict;
# spent 31µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@4 # spent 7µs making 1 call to strict::import
5249µs250µ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
use warnings;
# spent 33µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@5 # spent 17µs making 1 call to warnings::import
62173µs115µ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
use Foswiki::Query::OP;
# spent 15µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@6
719µsour @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
sub new {
103049µs my $class = shift;
1130371µs30458µs return $class->SUPER::new( arity => 1, @_ );
# spent 458µs making 30 calls to Foswiki::Query::OP::new, avg 15µs/call
12}
13
14sub 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
2216µs1;
23__END__