← 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/If/Parser.pm
StatementsExecuted 41 statements in 1.01ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1113.68ms30.5msFoswiki::If::Parser::::newFoswiki::If::Parser::new
111581µs7.89msFoswiki::If::Parser::::BEGIN@16Foswiki::If::Parser::BEGIN@16
111367µs442µsFoswiki::If::Parser::::BEGIN@20Foswiki::If::Parser::BEGIN@20
11126µs50µsFoswiki::If::Parser::::BEGIN@13Foswiki::If::Parser::BEGIN@13
11117µs40µsFoswiki::If::Parser::::BEGIN@19Foswiki::If::Parser::BEGIN@19
11116µs26µsFoswiki::If::Parser::::BEGIN@14Foswiki::If::Parser::BEGIN@14
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::Parser
6
7Support for the conditions in %IF{} statements.
8
9=cut
10
11package Foswiki::If::Parser;
12
13250µs274µs
# spent 50µs (26+24) within Foswiki::If::Parser::BEGIN@13 which was called: # once (26µs+24µs) by Foswiki::IF at line 13
use strict;
# spent 50µs making 1 call to Foswiki::If::Parser::BEGIN@13 # spent 24µs making 1 call to strict::import
14244µs235µs
# spent 26µs (16+10) within Foswiki::If::Parser::BEGIN@14 which was called: # once (16µs+10µs) by Foswiki::IF at line 14
use warnings;
# spent 26µs making 1 call to Foswiki::If::Parser::BEGIN@14 # spent 10µs making 1 call to warnings::import
15
162194µs17.89ms
# spent 7.89ms (581µs+7.31) within Foswiki::If::Parser::BEGIN@16 which was called: # once (581µs+7.31ms) by Foswiki::IF at line 16
use Foswiki::Query::Parser ();
# spent 7.89ms making 1 call to Foswiki::If::Parser::BEGIN@16
17111µsour @ISA = ('Foswiki::Query::Parser');
18
19241µs264µs
# spent 40µs (17+23) within Foswiki::If::Parser::BEGIN@19 which was called: # once (17µs+23µs) by Foswiki::IF at line 19
use Assert;
# spent 40µs making 1 call to Foswiki::If::Parser::BEGIN@19 # spent 23µs making 1 call to Assert::import
202304µs1442µs
# spent 442µs (367+75) within Foswiki::If::Parser::BEGIN@20 which was called: # once (367µs+75µs) by Foswiki::IF at line 20
use Foswiki::If::Node ();
# spent 442µs making 1 call to Foswiki::If::Parser::BEGIN@20
21
22
# spent 30.5ms (3.68+26.8) within Foswiki::If::Parser::new which was called: # once (3.68ms+26.8ms) by Foswiki::IF at line 14 of /var/www/foswiki11/lib/Foswiki/Macros/IF.pm
sub new {
2311µs my ($class) = @_;
24
25132µs125.8ms my $this = $class->SUPER::new( { nodeClass => 'Foswiki::If::Node', } );
# spent 25.8ms making 1 call to Foswiki::Query::Parser::new
2611µs die "{Operators}{If} is undefined; re-run configure"
27 unless defined( $Foswiki::cfg{Operators}{If} );
2814µs foreach my $op ( @{ $Foswiki::cfg{Operators}{If} } ) {
298239µs eval "require $op";
# spent 108µs executing statements in string eval # spent 100µs executing statements in string eval # spent 98µs executing statements in string eval # spent 97µs executing statements in string eval # spent 95µs executing statements in string eval # spent 95µs executing statements in string eval # spent 94µs executing statements in string eval # spent 93µs executing statements in string eval
30820µs818µs ASSERT( !$@ ) if DEBUG;
# spent 18µs making 8 calls to Assert::ASSERTS_OFF, avg 2µs/call
31858µs16435µs $this->addOperator( $op->new() );
# spent 58µs making 1 call to Foswiki::If::OP_dollar::new # spent 52µs making 1 call to Foswiki::If::OP_allows::new # spent 50µs making 1 call to Foswiki::If::OP_defined::new # spent 50µs making 1 call to Foswiki::If::OP_context::new # spent 49µs making 1 call to Foswiki::If::OP_istopic::new # spent 48µs making 1 call to Foswiki::If::OP_isempty::new # spent 48µs making 1 call to Foswiki::If::OP_ingroup::new # spent 47µs making 1 call to Foswiki::If::OP_isweb::new # spent 32µs making 8 calls to Foswiki::Infix::Parser::addOperator, avg 4µs/call
32 }
33
3416µs return $this;
35}
36
3714µs1;
38__END__