← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:11 2015

Filename/var/www/foswiki11/lib/Foswiki/Search/Node.pm
StatementsExecuted 132 statements in 471µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4011234µs234µsFoswiki::Search::Node::::newFoswiki::Search::Node::new
11114µs26µsFoswiki::Search::Node::::BEGIN@15Foswiki::Search::Node::BEGIN@15
11110µs108µsFoswiki::Search::Node::::BEGIN@19Foswiki::Search::Node::BEGIN@19
1119µs14µsFoswiki::Search::Node::::BEGIN@16Foswiki::Search::Node::BEGIN@16
1118µs21µsFoswiki::Search::Node::::BEGIN@18Foswiki::Search::Node::BEGIN@18
1114µs4µsFoswiki::Search::Node::::BEGIN@21Foswiki::Search::Node::BEGIN@21
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::Search
6
7Foswiki::Search::Node is a refactoring mid-step that contains the legacy SEARCH tokens
8
9If if becomes useful, it will become a set of Nodes as for Foswiki::Query
10
11=cut
12
13package Foswiki::Search::Node;
14
15227µs239µs
# spent 26µs (14+12) within Foswiki::Search::Node::BEGIN@15 which was called: # once (14µs+12µs) by Foswiki::Store::QueryAlgorithms::BruteForce::BEGIN@31 at line 15
use strict;
# spent 26µs making 1 call to Foswiki::Search::Node::BEGIN@15 # spent 12µs making 1 call to strict::import
16223µs219µs
# spent 14µs (9+5) within Foswiki::Search::Node::BEGIN@16 which was called: # once (9µs+5µs) by Foswiki::Store::QueryAlgorithms::BruteForce::BEGIN@31 at line 16
use warnings;
# spent 14µs making 1 call to Foswiki::Search::Node::BEGIN@16 # spent 5µs making 1 call to warnings::import
17
18233µs234µs
# spent 21µs (8+13) within Foswiki::Search::Node::BEGIN@18 which was called: # once (8µs+13µs) by Foswiki::Store::QueryAlgorithms::BruteForce::BEGIN@31 at line 18
use Assert;
# spent 21µs making 1 call to Foswiki::Search::Node::BEGIN@18 # spent 13µs making 1 call to Assert::import
19228µs2207µs
# spent 108µs (10+99) within Foswiki::Search::Node::BEGIN@19 which was called: # once (10µs+99µs) by Foswiki::Store::QueryAlgorithms::BruteForce::BEGIN@31 at line 19
use Error qw( :try );
# spent 108µs making 1 call to Foswiki::Search::Node::BEGIN@19 # spent 99µs making 1 call to Error::import
20
21276µs14µs
# spent 4µs within Foswiki::Search::Node::BEGIN@21 which was called: # once (4µs+0s) by Foswiki::Store::QueryAlgorithms::BruteForce::BEGIN@31 at line 21
use Foswiki::Infix::Node ();
# spent 4µs making 1 call to Foswiki::Search::Node::BEGIN@21
2218µsour @ISA = ('Foswiki::Infix::Node');
23
24=begin TML
25
26---++ ClassMethod new($search, $tokens, $options)
27
28Construct a Legacy Search token container (its not yet a proper Node)
29
30=cut
31
32
# spent 234µs within Foswiki::Search::Node::new which was called 40 times, avg 6µs/call: # 40 times (234µs+0s) by Foswiki::Store::QueryAlgorithms::BruteForce::_webQuery at line 184 of /var/www/foswiki11/lib/Foswiki/Store/QueryAlgorithms/BruteForce.pm, avg 6µs/call
sub new {
334042µs my ( $class, $search, $tokens, $options ) = @_;
3440112µs my $this =
35 bless( { tokens => $tokens, search => $search, options => $options },
36 $class );
3740119µs return $this;
38}
39
4013µs1;
41__END__