← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:26:35 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/If/Parser.pm
StatementsExecuted 50 statements in 1.95ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.56ms32.9msFoswiki::If::Parser::::BEGIN@16Foswiki::If::Parser::BEGIN@16
111726µs898µsFoswiki::If::Parser::::BEGIN@22Foswiki::If::Parser::BEGIN@22
111471µs546µsFoswiki::If::Parser::::BEGIN@25Foswiki::If::Parser::BEGIN@25
111469µs546µsFoswiki::If::Parser::::BEGIN@26Foswiki::If::Parser::BEGIN@26
111468µs543µsFoswiki::If::Parser::::BEGIN@24Foswiki::If::Parser::BEGIN@24
111444µs568µsFoswiki::If::Parser::::BEGIN@28Foswiki::If::Parser::BEGIN@28
111435µs509µsFoswiki::If::Parser::::BEGIN@27Foswiki::If::Parser::BEGIN@27
111422µs506µsFoswiki::If::Parser::::BEGIN@23Foswiki::If::Parser::BEGIN@23
111408µs483µsFoswiki::If::Parser::::BEGIN@29Foswiki::If::Parser::BEGIN@29
111331µs412µsFoswiki::If::Parser::::BEGIN@20Foswiki::If::Parser::BEGIN@20
111213µs3.54msFoswiki::If::Parser::::newFoswiki::If::Parser::new
11128µs35µsFoswiki::If::Parser::::BEGIN@13Foswiki::If::Parser::BEGIN@13
11120µs65µsFoswiki::If::Parser::::BEGIN@19Foswiki::If::Parser::BEGIN@19
11117µs103µsFoswiki::If::Parser::::BEGIN@33Foswiki::If::Parser::BEGIN@33
11116µs34µ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
13251µs242µs
# spent 35µs (28+7) within Foswiki::If::Parser::BEGIN@13 which was called: # once (28µs+7µs) by Foswiki::IF at line 13
use strict;
# spent 35µs making 1 call to Foswiki::If::Parser::BEGIN@13 # spent 7µs making 1 call to strict::import
14242µs252µs
# spent 34µs (16+18) within Foswiki::If::Parser::BEGIN@14 which was called: # once (16µs+18µs) by Foswiki::IF at line 14
use warnings;
# spent 34µs making 1 call to Foswiki::If::Parser::BEGIN@14 # spent 18µs making 1 call to warnings::import
15
162191µs132.9ms
# spent 32.9ms (1.56+31.4) within Foswiki::If::Parser::BEGIN@16 which was called: # once (1.56ms+31.4ms) by Foswiki::IF at line 16
use Foswiki::Query::Parser ();
# spent 32.9ms making 1 call to Foswiki::If::Parser::BEGIN@16
17111µsour @ISA = ('Foswiki::Query::Parser');
18
19246µs2110µs
# spent 65µs (20+45) within Foswiki::If::Parser::BEGIN@19 which was called: # once (20µs+45µs) by Foswiki::IF at line 19
use Assert;
# spent 65µs making 1 call to Foswiki::If::Parser::BEGIN@19 # spent 45µs making 1 call to Assert::import
202141µs1412µs
# spent 412µs (331+80) within Foswiki::If::Parser::BEGIN@20 which was called: # once (331µs+80µs) by Foswiki::IF at line 20
use Foswiki::If::Node ();
# spent 412µs making 1 call to Foswiki::If::Parser::BEGIN@20
21
222147µs1898µs
# spent 898µs (726+172) within Foswiki::If::Parser::BEGIN@22 which was called: # once (726µs+172µs) by Foswiki::IF at line 22
use Foswiki::If::OP_allows ();
# spent 898µs making 1 call to Foswiki::If::Parser::BEGIN@22
232149µs1506µs
# spent 506µs (422+84) within Foswiki::If::Parser::BEGIN@23 which was called: # once (422µs+84µs) by Foswiki::IF at line 23
use Foswiki::If::OP_context ();
# spent 506µs making 1 call to Foswiki::If::Parser::BEGIN@23
242138µs1543µs
# spent 543µs (468+75) within Foswiki::If::Parser::BEGIN@24 which was called: # once (468µs+75µs) by Foswiki::IF at line 24
use Foswiki::If::OP_defined ();
# spent 543µs making 1 call to Foswiki::If::Parser::BEGIN@24
252138µs1546µs
# spent 546µs (471+74) within Foswiki::If::Parser::BEGIN@25 which was called: # once (471µs+74µs) by Foswiki::IF at line 25
use Foswiki::If::OP_dollar ();
# spent 546µs making 1 call to Foswiki::If::Parser::BEGIN@25
262146µs1546µs
# spent 546µs (469+77) within Foswiki::If::Parser::BEGIN@26 which was called: # once (469µs+77µs) by Foswiki::IF at line 26
use Foswiki::If::OP_ingroup ();
# spent 546µs making 1 call to Foswiki::If::Parser::BEGIN@26
272137µs1509µs
# spent 509µs (435+75) within Foswiki::If::Parser::BEGIN@27 which was called: # once (435µs+75µs) by Foswiki::IF at line 27
use Foswiki::If::OP_isempty ();
# spent 509µs making 1 call to Foswiki::If::Parser::BEGIN@27
282134µs1568µs
# spent 568µs (444+124) within Foswiki::If::Parser::BEGIN@28 which was called: # once (444µs+124µs) by Foswiki::IF at line 28
use Foswiki::If::OP_istopic ();
# spent 568µs making 1 call to Foswiki::If::Parser::BEGIN@28
292155µs1483µs
# spent 483µs (408+75) within Foswiki::If::Parser::BEGIN@29 which was called: # once (408µs+75µs) by Foswiki::IF at line 29
use Foswiki::If::OP_isweb ();
# spent 483µs making 1 call to Foswiki::If::Parser::BEGIN@29
30
31# Additional operators specific to IF statements (not available in other
32# query types)
33185µs
# spent 103µs (17+85) within Foswiki::If::Parser::BEGIN@33 which was called: # once (17µs+85µs) by Foswiki::IF at line 34
use constant OPS => qw(allows context defined dollar ingroup isempty
# spent 85µs making 1 call to constant::import
342147µs1103µs istopic isweb );
# spent 103µs making 1 call to Foswiki::If::Parser::BEGIN@33
35
36
# spent 3.54ms (213µs+3.33) within Foswiki::If::Parser::new which was called: # once (213µs+3.33ms) by Foswiki::IF at line 14 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/IF.pm
sub new {
3720176µs my ($class) = @_;
38
3912.78ms my $this = $class->SUPER::new( { nodeClass => 'Foswiki::If::Node', } );
# spent 2.78ms making 1 call to Foswiki::Query::Parser::new
4017µs foreach my $op ( OPS() ) {
# spent 7µs making 1 call to constant::__ANON__[constant.pm:140]
41 my $on = 'Foswiki::If::OP_' . $op;
4216537µs $this->addOperator( $on->new() );
# spent 85µs making 8 calls to Foswiki::Infix::Parser::addOperator, avg 11µs/call # spent 66µs making 1 call to Foswiki::If::OP_istopic::new # spent 63µs making 1 call to Foswiki::If::OP_isweb::new # spent 62µs making 1 call to Foswiki::If::OP_defined::new # spent 60µs making 1 call to Foswiki::If::OP_isempty::new # spent 57µs making 1 call to Foswiki::If::OP_context::new # spent 57µs making 1 call to Foswiki::If::OP_dollar::new # spent 46µs making 1 call to Foswiki::If::OP_allows::new # spent 43µs making 1 call to Foswiki::If::OP_ingroup::new
43 }
44
45 return $this;
46}
47
4817µs1;
49__END__