← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:10 2015

Filename/var/www/foswiki11/lib/Foswiki/Query/OP_or.pm
StatementsExecuted 32 statements in 623µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31150µs96µsFoswiki::Query::OP_or::::newFoswiki::Query::OP_or::new
21121µs723µsFoswiki::Query::OP_or::::evaluateFoswiki::Query::OP_or::evaluate (recurses: max depth 1, inclusive time 683µs)
11120µs38µsFoswiki::Query::OP_or::::BEGIN@11Foswiki::Query::OP_or::BEGIN@11
11114µs25µsFoswiki::Query::OP_or::::BEGIN@36Foswiki::Query::OP_or::BEGIN@36
11114µs27µsFoswiki::Query::OP_or::::BEGIN@26Foswiki::Query::OP_or::BEGIN@26
11113µs20µsFoswiki::Query::OP_or::::BEGIN@12Foswiki::Query::OP_or::BEGIN@12
11113µs28µsFoswiki::Query::OP_or::::BEGIN@30Foswiki::Query::OP_or::BEGIN@30
11112µs26µsFoswiki::Query::OP_or::::BEGIN@42Foswiki::Query::OP_or::BEGIN@42
1116µs6µsFoswiki::Query::OP_or::::BEGIN@14Foswiki::Query::OP_or::BEGIN@14
0000s0sFoswiki::Query::OP_or::::evaluatesToConstantFoswiki::Query::OP_or::evaluatesToConstant
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
2
3=begin TML
4
5---+ package Foswiki::Query::OP_or
6
7=cut
8
9package Foswiki::Query::OP_or;
10
11238µs257µs
# spent 38µs (20+19) within Foswiki::Query::OP_or::BEGIN@11 which was called: # once (20µs+19µs) by Foswiki::Query::Parser::new at line 11
use strict;
# spent 38µs making 1 call to Foswiki::Query::OP_or::BEGIN@11 # spent 19µs making 1 call to strict::import
12242µs228µs
# spent 20µs (13+7) within Foswiki::Query::OP_or::BEGIN@12 which was called: # once (13µs+7µs) by Foswiki::Query::Parser::new at line 12
use warnings;
# spent 20µs making 1 call to Foswiki::Query::OP_or::BEGIN@12 # spent 7µs making 1 call to warnings::import
13
142140µs16µs
# spent 6µs within Foswiki::Query::OP_or::BEGIN@14 which was called: # once (6µs+0s) by Foswiki::Query::Parser::new at line 14
use Foswiki::Query::BinaryOP ();
# spent 6µs making 1 call to Foswiki::Query::OP_or::BEGIN@14
1519µsour @ISA = ('Foswiki::Query::BinaryOP');
16
17
# spent 96µs (50+47) within Foswiki::Query::OP_or::new which was called 3 times, avg 32µs/call: # 3 times (50µs+47µs) by Foswiki::Query::Parser::new at line 47 of /var/www/foswiki11/lib/Foswiki/Query/Parser.pm, avg 32µs/call
sub new {
1832µs my $class = shift;
19344µs347µs return $class->SUPER::new( name => 'or', prec => 100 );
# spent 47µs making 3 calls to Foswiki::Query::BinaryOP::new, avg 16µs/call
20}
21
22
# spent 723µs (21+702) within Foswiki::Query::OP_or::evaluate which was called 2 times, avg 362µs/call: # 2 times (21µs+702µs) by Foswiki::Query::Node::evaluate at line 184 of /var/www/foswiki11/lib/Foswiki/Query/Node.pm, avg 362µs/call
sub evaluate {
232600ns my $this = shift;
242400ns my $node = shift;
252900ns my $a = $node->{params}[0];
26277µs241µs
# spent 27µs (14+14) within Foswiki::Query::OP_or::BEGIN@26 which was called: # once (14µs+14µs) by Foswiki::Query::Parser::new at line 26
no warnings 'recursion';
# spent 27µs making 1 call to Foswiki::Query::OP_or::BEGIN@26 # spent 14µs making 1 call to warnings::unimport
27215µs20s return 1 if $a->evaluate(@_);
# spent 964µs making 2 calls to Foswiki::Query::Node::evaluate, avg 482µs/call, recursion: max depth 2, sum of overlapping time 964µs
281800ns my $b = $node->{params}[1];
2917µs10s return $b->evaluate(@_) ? 1 : 0;
# spent 421µs making 1 call to Foswiki::Query::Node::evaluate, recursion: max depth 2, sum of overlapping time 421µs
30273µs244µs
# spent 28µs (13+16) within Foswiki::Query::OP_or::BEGIN@30 which was called: # once (13µs+16µs) by Foswiki::Query::Parser::new at line 30
use warnings 'recursion';
# spent 28µs making 1 call to Foswiki::Query::OP_or::BEGIN@30 # spent 16µs making 1 call to warnings::import
31}
32
33sub evaluatesToConstant {
34 my $this = shift;
35 my $node = shift;
362108µs237µs
# spent 25µs (14+12) within Foswiki::Query::OP_or::BEGIN@36 which was called: # once (14µs+12µs) by Foswiki::Query::Parser::new at line 36
no warnings 'recursion';
# spent 25µs making 1 call to Foswiki::Query::OP_or::BEGIN@36 # spent 12µs making 1 call to warnings::unimport
37 my $ac = $node->{params}[0]->evaluatesToConstant(@_);
38 my $bc = $node->{params}[1]->evaluatesToConstant(@_);
39 return 1 if ( $ac && $bc );
40 return 1 if $ac && $node->{params}[0]->evaluate(@_);
41 return 1 if $bc && $node->{params}[1]->evaluate(@_);
42262µs241µs
# spent 26µs (12+15) within Foswiki::Query::OP_or::BEGIN@42 which was called: # once (12µs+15µs) by Foswiki::Query::Parser::new at line 42
use warnings 'recursion';
# spent 26µs making 1 call to Foswiki::Query::OP_or::BEGIN@42 # spent 15µs making 1 call to warnings::import
43 return 0;
44}
45
4614µs1;
47__END__