← 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/If/Node.pm
StatementsExecuted 101 statements in 343µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
465589µs89µsFoswiki::If::Node::::_evaluateFoswiki::If::Node::_evaluate
11113µs26µsFoswiki::If::Node::::BEGIN@13Foswiki::If::Node::BEGIN@13
1118µs12µsFoswiki::If::Node::::BEGIN@14Foswiki::If::Node::BEGIN@14
1114µs4µsFoswiki::If::Node::::BEGIN@19Foswiki::If::Node::BEGIN@19
1113µs3µsFoswiki::If::Node::::BEGIN@16Foswiki::If::Node::BEGIN@16
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::If::Node
6
7Node class for the result of an If statement parse
8
9=cut
10
11package Foswiki::If::Node;
12
13229µs238µs
# spent 26µs (13+12) within Foswiki::If::Node::BEGIN@13 which was called: # once (13µs+12µs) by Foswiki::If::Parser::BEGIN@20 at line 13
use strict;
# spent 26µs making 1 call to Foswiki::If::Node::BEGIN@13 # spent 12µs making 1 call to strict::import
14221µs216µs
# spent 12µs (8+4) within Foswiki::If::Node::BEGIN@14 which was called: # once (8µs+4µs) by Foswiki::If::Parser::BEGIN@20 at line 14
use warnings;
# spent 12µs making 1 call to Foswiki::If::Node::BEGIN@14 # spent 4µs making 1 call to warnings::import
15
16256µs13µs
# spent 3µs within Foswiki::If::Node::BEGIN@16 which was called: # once (3µs+0s) by Foswiki::If::Parser::BEGIN@20 at line 16
use Foswiki::Query::Node ();
# spent 3µs making 1 call to Foswiki::If::Node::BEGIN@16
1717µsour @ISA = ('Foswiki::Query::Node');
18
19
# spent 4µs within Foswiki::If::Node::BEGIN@19 which was called: # once (4µs+0s) by Foswiki::If::Parser::BEGIN@20 at line 24
BEGIN {
2015µs if ( $Foswiki::cfg{UseLocale} ) {
21 require locale;
22 import locale();
23 }
24177µs14µs}
# spent 4µs making 1 call to Foswiki::If::Node::BEGIN@19
25
26# Used wherever a plain string is expected, this method
27# suppresses automatic lookup of names in meta-data
28
# spent 89µs within Foswiki::If::Node::_evaluate which was called 46 times, avg 2µs/call: # 16 times (33µs+0s) by Foswiki::If::OP_dollar::evaluate at line 41 of /var/www/foswikidev/core/lib/Foswiki/If/OP_dollar.pm, avg 2µs/call # 13 times (25µs+0s) by Foswiki::If::OP_defined::evaluate at line 40 of /var/www/foswikidev/core/lib/Foswiki/If/OP_defined.pm, avg 2µs/call # 12 times (21µs+0s) by Foswiki::If::OP_context::evaluate at line 37 of /var/www/foswikidev/core/lib/Foswiki/If/OP_context.pm, avg 2µs/call # 4 times (9µs+0s) by Foswiki::If::OP_istopic::evaluate at line 38 of /var/www/foswikidev/core/lib/Foswiki/If/OP_istopic.pm, avg 2µs/call # once (2µs+0s) by Foswiki::If::OP_allows::evaluate at line 38 of /var/www/foswikidev/core/lib/Foswiki/If/OP_allows.pm
sub _evaluate {
29469µs my $this = shift;
30
3146137µs if ( !ref( $this->{op} ) ) {
32 return $this->{params}[0];
33 }
34 else {
35 if ( $this->{op}->{name} eq '(' ) {
36 return $this->{params}[0]->_evaluate(@_);
37 }
38 return $this->evaluate(@_);
39 }
40}
41
4213µs1;
43__END__