← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:15 2015

Filename/var/www/foswikidev/core/lib/Foswiki/Query/UnaryOP.pm
StatementsExecuted 69 statements in 424µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
301414225µs408µsFoswiki::Query::UnaryOP::::newFoswiki::Query::UnaryOP::new
11112µs24µsFoswiki::Query::UnaryOP::::BEGIN@4Foswiki::Query::UnaryOP::BEGIN@4
1118µs12µsFoswiki::Query::UnaryOP::::BEGIN@5Foswiki::Query::UnaryOP::BEGIN@5
1117µs7µsFoswiki::Query::UnaryOP::::BEGIN@6Foswiki::Query::UnaryOP::BEGIN@6
1114µs4µsFoswiki::Query::UnaryOP::::BEGIN@9Foswiki::Query::UnaryOP::BEGIN@9
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
4225µs236µ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
use strict;
# spent 24µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@4 # spent 12µs making 1 call to strict::import
5223µs216µ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
use warnings;
# spent 12µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@5 # spent 4µs making 1 call to warnings::import
6257µs17µ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
use Foswiki::Query::OP;
# spent 7µs making 1 call to Foswiki::Query::UnaryOP::BEGIN@6
716µsour @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
BEGIN {
1015µs if ( $Foswiki::cfg{UseLocale} ) {
11 require locale;
12 import locale();
13 }
14180µs14µ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
sub new {
17308µs my $class = shift;
1830217µs30183µs return $class->SUPER::new( arity => 1, @_ );
# spent 183µs making 30 calls to Foswiki::Query::OP::new, avg 6µs/call
19}
20
21sub 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
2913µs1;
30__END__