← 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_istopic.pm
StatementsExecuted 80 statements in 461µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
711159µs856µsFoswiki::If::OP_istopic::::evaluateFoswiki::If::OP_istopic::evaluate
11125µs49µsFoswiki::If::OP_istopic::::newFoswiki::If::OP_istopic::new
11118µs36µsFoswiki::If::OP_istopic::::BEGIN@11Foswiki::If::OP_istopic::BEGIN@11
11113µs21µsFoswiki::If::OP_istopic::::BEGIN@12Foswiki::If::OP_istopic::BEGIN@12
1115µs5µsFoswiki::If::OP_istopic::::BEGIN@14Foswiki::If::OP_istopic::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_istopic
6
7=cut
8
9package Foswiki::If::OP_istopic;
10
11246µs254µs
# spent 36µs (18+18) within Foswiki::If::OP_istopic::BEGIN@11 which was called: # once (18µs+18µs) by Foswiki::If::Parser::new at line 11
use strict;
# spent 36µs making 1 call to Foswiki::If::OP_istopic::BEGIN@11 # spent 18µs making 1 call to strict::import
12233µs228µs
# spent 21µs (13+7) within Foswiki::If::OP_istopic::BEGIN@12 which was called: # once (13µs+7µs) by Foswiki::If::Parser::new at line 12
use warnings;
# spent 21µs making 1 call to Foswiki::If::OP_istopic::BEGIN@12 # spent 7µs making 1 call to warnings::import
13
142223µs15µs
# spent 5µs within Foswiki::If::OP_istopic::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_istopic::BEGIN@14
15110µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 49µs (25+25) within Foswiki::If::OP_istopic::new which was called: # once (25µs+25µs) by Foswiki::If::Parser::new at line 31 of /var/www/foswiki11/lib/Foswiki/If/Parser.pm
sub new {
181700ns my $class = shift;
19123µs125µs return $class->SUPER::new( name => 'istopic', prec => 600 );
# spent 25µs making 1 call to Foswiki::Query::UnaryOP::new
20}
21
22
# spent 856µs (159+697) within Foswiki::If::OP_istopic::evaluate which was called 7 times, avg 122µs/call: # 7 times (159µs+697µs) by Foswiki::Query::Node::evaluate at line 184 of /var/www/foswiki11/lib/Foswiki/Query/Node.pm, avg 122µs/call
sub evaluate {
2373µs my $this = shift;
2472µs my $node = shift;
2574µs my $a = $node->{params}->[0];
26713µs my %domain = @_;
27713µs711µs my $session = $domain{tom}->session;
# spent 11µs making 7 calls to Foswiki::Meta::session, avg 2µs/call
2872µs throw Error::Simple(
29 'No context in which to evaluate "' . $a->stringify() . '"' )
30 unless $session;
31720µs719µs my ( $web, $topic ) = ( $session->{webName}, $a->_evaluate(@_) );
# spent 19µs making 7 calls to Foswiki::If::Node::_evaluate, avg 3µs/call
3272µs return 0 unless defined $topic; # null topic cannot possibly exist
33721µs7109µs ( $web, $topic ) = $session->normalizeWebTopicName( $web, $topic );
# spent 109µs making 7 calls to Foswiki::normalizeWebTopicName, avg 16µs/call
34741µs7558µs return $session->topicExists( $web, $topic ) ? 1 : 0;
# spent 558µs making 7 calls to Foswiki::topicExists, avg 80µs/call
35}
36
3714µs1;
38__END__