← 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/Parser.pm
StatementsExecuted 51 statements in 1.14ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111965µs15.9msFoswiki::If::Parser::::BEGIN@16Foswiki::If::Parser::BEGIN@16
111422µs508µsFoswiki::If::Parser::::BEGIN@22Foswiki::If::Parser::BEGIN@22
111316µs361µsFoswiki::If::Parser::::BEGIN@26Foswiki::If::Parser::BEGIN@26
111305µs359µsFoswiki::If::Parser::::BEGIN@24Foswiki::If::Parser::BEGIN@24
111302µs348µsFoswiki::If::Parser::::BEGIN@25Foswiki::If::Parser::BEGIN@25
111296µs340µsFoswiki::If::Parser::::BEGIN@28Foswiki::If::Parser::BEGIN@28
111294µs338µsFoswiki::If::Parser::::BEGIN@27Foswiki::If::Parser::BEGIN@27
111293µs358µsFoswiki::If::Parser::::BEGIN@23Foswiki::If::Parser::BEGIN@23
111269µs317µsFoswiki::If::Parser::::BEGIN@29Foswiki::If::Parser::BEGIN@29
111238µs282µsFoswiki::If::Parser::::BEGIN@20Foswiki::If::Parser::BEGIN@20
111170µs1.48msFoswiki::If::Parser::::newFoswiki::If::Parser::new
11114µs26µsFoswiki::If::Parser::::BEGIN@13Foswiki::If::Parser::BEGIN@13
11111µs37µsFoswiki::If::Parser::::BEGIN@19Foswiki::If::Parser::BEGIN@19
1119µs13µsFoswiki::If::Parser::::BEGIN@14Foswiki::If::Parser::BEGIN@14
1119µs35µsFoswiki::If::Parser::::BEGIN@40Foswiki::If::Parser::BEGIN@40
1114µs4µsFoswiki::If::Parser::::BEGIN@31Foswiki::If::Parser::BEGIN@31
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
13227µs239µs
# spent 26µs (14+13) within Foswiki::If::Parser::BEGIN@13 which was called: # once (14µs+13µs) by Foswiki::IF at line 13
use strict;
# spent 26µs making 1 call to Foswiki::If::Parser::BEGIN@13 # spent 13µs making 1 call to strict::import
14223µs217µs
# spent 13µs (9+4) within Foswiki::If::Parser::BEGIN@14 which was called: # once (9µs+4µs) by Foswiki::IF at line 14
use warnings;
# spent 13µs making 1 call to Foswiki::If::Parser::BEGIN@14 # spent 4µs making 1 call to warnings::import
15
162108µs115.9ms
# spent 15.9ms (965µs+14.9) within Foswiki::If::Parser::BEGIN@16 which was called: # once (965µs+14.9ms) by Foswiki::IF at line 16
use Foswiki::Query::Parser ();
# spent 15.9ms making 1 call to Foswiki::If::Parser::BEGIN@16
1716µsour @ISA = ('Foswiki::Query::Parser');
18
19225µs263µs
# spent 37µs (11+26) within Foswiki::If::Parser::BEGIN@19 which was called: # once (11µs+26µs) by Foswiki::IF at line 19
use Assert;
# spent 37µs making 1 call to Foswiki::If::Parser::BEGIN@19 # spent 26µs making 1 call to Exporter::import
20284µs1282µs
# spent 282µs (238+44) within Foswiki::If::Parser::BEGIN@20 which was called: # once (238µs+44µs) by Foswiki::IF at line 20
use Foswiki::If::Node ();
# spent 282µs making 1 call to Foswiki::If::Parser::BEGIN@20
21
22288µs1508µs
# spent 508µs (422+86) within Foswiki::If::Parser::BEGIN@22 which was called: # once (422µs+86µs) by Foswiki::IF at line 22
use Foswiki::If::OP_allows ();
# spent 508µs making 1 call to Foswiki::If::Parser::BEGIN@22
23285µs1358µs
# spent 358µs (293+65) within Foswiki::If::Parser::BEGIN@23 which was called: # once (293µs+65µs) by Foswiki::IF at line 23
use Foswiki::If::OP_context ();
# spent 358µs making 1 call to Foswiki::If::Parser::BEGIN@23
24286µs1359µs
# spent 359µs (305+54) within Foswiki::If::Parser::BEGIN@24 which was called: # once (305µs+54µs) by Foswiki::IF at line 24
use Foswiki::If::OP_defined ();
# spent 359µs making 1 call to Foswiki::If::Parser::BEGIN@24
25281µs1348µs
# spent 348µs (302+46) within Foswiki::If::Parser::BEGIN@25 which was called: # once (302µs+46µs) by Foswiki::IF at line 25
use Foswiki::If::OP_dollar ();
# spent 348µs making 1 call to Foswiki::If::Parser::BEGIN@25
26283µs1361µs
# spent 361µs (316+45) within Foswiki::If::Parser::BEGIN@26 which was called: # once (316µs+45µs) by Foswiki::IF at line 26
use Foswiki::If::OP_ingroup ();
# spent 361µs making 1 call to Foswiki::If::Parser::BEGIN@26
27287µs1338µs
# spent 338µs (294+44) within Foswiki::If::Parser::BEGIN@27 which was called: # once (294µs+44µs) by Foswiki::IF at line 27
use Foswiki::If::OP_isempty ();
# spent 338µs making 1 call to Foswiki::If::Parser::BEGIN@27
28288µs1340µs
# spent 340µs (296+43) within Foswiki::If::Parser::BEGIN@28 which was called: # once (296µs+43µs) by Foswiki::IF at line 28
use Foswiki::If::OP_istopic ();
# spent 340µs making 1 call to Foswiki::If::Parser::BEGIN@28
292100µs1317µs
# spent 317µs (269+48) within Foswiki::If::Parser::BEGIN@29 which was called: # once (269µs+48µs) by Foswiki::IF at line 29
use Foswiki::If::OP_isweb ();
# spent 317µs making 1 call to Foswiki::If::Parser::BEGIN@29
30
31
# spent 4µs within Foswiki::If::Parser::BEGIN@31 which was called: # once (4µs+0s) by Foswiki::IF at line 36
BEGIN {
3215µs if ( $Foswiki::cfg{UseLocale} ) {
33 require locale;
34 import locale();
35 }
36125µs14µs}
# spent 4µs making 1 call to Foswiki::If::Parser::BEGIN@31
37
38# Additional operators specific to IF statements (not available in other
39# query types)
4016µs126µs
# spent 35µs (9+26) within Foswiki::If::Parser::BEGIN@40 which was called: # once (9µs+26µs) by Foswiki::IF at line 41
use constant OPS => qw(allows context defined dollar ingroup isempty
# spent 26µs making 1 call to constant::import
41176µs135µs istopic isweb );
# spent 35µs making 1 call to Foswiki::If::Parser::BEGIN@40
42
43
# spent 1.48ms (170µs+1.31) within Foswiki::If::Parser::new which was called: # once (170µs+1.31ms) by Foswiki::IF at line 21 of /var/www/foswikidev/core/lib/Foswiki/Macros/IF.pm
sub new {
441600ns my ($class) = @_;
45
46114µs11.07ms my $this = $class->SUPER::new( { nodeClass => 'Foswiki::If::Node', } );
# spent 1.07ms making 1 call to Foswiki::Query::Parser::new
4712µs12µs foreach my $op ( OPS() ) {
# spent 2µs making 1 call to constant::__ANON__[constant.pm:144]
4884µs my $on = 'Foswiki::If::OP_' . $op;
49832µs16240µs $this->addOperator( $on->new() );
# spent 34µs making 1 call to Foswiki::If::OP_context::new # spent 29µs making 1 call to Foswiki::If::OP_defined::new # spent 29µs making 1 call to Foswiki::If::OP_istopic::new # spent 27µs making 1 call to Foswiki::If::OP_dollar::new # spent 27µs making 1 call to Foswiki::If::OP_isempty::new # spent 27µs making 1 call to Foswiki::If::OP_isweb::new # spent 26µs making 1 call to Foswiki::If::OP_allows::new # spent 23µs making 1 call to Foswiki::If::OP_ingroup::new # spent 19µs making 8 calls to Foswiki::Infix::Parser::addOperator, avg 2µs/call
50 }
51
5213µs return $this;
53}
54
5513µs1;
56__END__