← 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/OP_dollar.pm
StatementsExecuted 208 statements in 733µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1811407µs6.96msFoswiki::If::OP_dollar::::evaluateFoswiki::If::OP_dollar::evaluate
11133µs58µsFoswiki::If::OP_dollar::::newFoswiki::If::OP_dollar::new
11119µs37µsFoswiki::If::OP_dollar::::BEGIN@11Foswiki::If::OP_dollar::BEGIN@11
11113µs19µsFoswiki::If::OP_dollar::::BEGIN@12Foswiki::If::OP_dollar::BEGIN@12
1115µs5µsFoswiki::If::OP_dollar::::BEGIN@14Foswiki::If::OP_dollar::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::OP_dollar
6
7=cut
8
9package Foswiki::If::OP_dollar;
10
11237µs255µs
# spent 37µs (19+18) within Foswiki::If::OP_dollar::BEGIN@11 which was called: # once (19µs+18µs) by Foswiki::If::Parser::new at line 11
use strict;
# spent 37µs making 1 call to Foswiki::If::OP_dollar::BEGIN@11 # spent 18µs making 1 call to strict::import
12232µs226µs
# spent 19µs (13+7) within Foswiki::If::OP_dollar::BEGIN@12 which was called: # once (13µs+7µs) by Foswiki::If::Parser::new at line 12
use warnings;
# spent 19µs making 1 call to Foswiki::If::OP_dollar::BEGIN@12 # spent 7µs making 1 call to warnings::import
13
142258µs15µs
# spent 5µs within Foswiki::If::OP_dollar::BEGIN@14 which was called: # once (5µs+0s) by Foswiki::If::Parser::new at line 14
use Foswiki::Query::UnaryOP ();
# spent 5µs making 1 call to Foswiki::If::OP_dollar::BEGIN@14
1519µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 58µs (33+25) within Foswiki::If::OP_dollar::new which was called: # once (33µs+25µs) by Foswiki::If::Parser::new at line 31 of /var/www/foswiki11/lib/Foswiki/If/Parser.pm
sub new {
181800ns my $class = shift;
19132µs125µs return $class->SUPER::new(
# spent 25µs making 1 call to Foswiki::Query::UnaryOP::new
20 name => '$',
21 prec => 600
22 );
23}
24
25
# spent 6.96ms (407µs+6.55) within Foswiki::If::OP_dollar::evaluate which was called 18 times, avg 387µs/call: # 18 times (407µs+6.55ms) by Foswiki::Query::Node::evaluate at line 184 of /var/www/foswiki11/lib/Foswiki/Query/Node.pm, avg 387µs/call
sub evaluate {
26186µs my $this = shift;
27183µs my $node = shift;
281810µs my $a = $node->{params}->[0];
291847µs my %domain = @_;
301844µs1837µs my $session = $domain{tom}->session;
# spent 37µs making 18 calls to Foswiki::Meta::session, avg 2µs/call
31186µs throw Error::Simple(
32 'No context in which to evaluate "' . $a->stringify() . '"' )
33 unless $session;
341842µs1854µs my $text = $a->_evaluate(@_) || '';
# spent 54µs making 18 calls to Foswiki::If::Node::_evaluate, avg 3µs/call
351853µs18450µs if ( $text && defined( $session->{request}->param($text) ) ) {
# spent 450µs making 18 calls to Foswiki::Request::param, avg 25µs/call
36 return $session->{request}->param($text);
37 }
38
391818µs $text = "%$text%";
401859µs180s Foswiki::innerExpandMacros( $session, \$text, $domain{tom} );
# spent 6.01ms making 18 calls to Foswiki::innerExpandMacros, avg 334µs/call, recursion: max depth 3, sum of overlapping time 6.01ms
41
421874µs return $text || '';
43}
44
4514µs1;
46__END__