Filename | /var/www/foswiki11/lib/Foswiki/Search/Node.pm |
Statements | Executed 132 statements in 471µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
40 | 1 | 1 | 234µs | 234µs | new | Foswiki::Search::Node::
1 | 1 | 1 | 14µs | 26µs | BEGIN@15 | Foswiki::Search::Node::
1 | 1 | 1 | 10µs | 108µs | BEGIN@19 | Foswiki::Search::Node::
1 | 1 | 1 | 9µs | 14µs | BEGIN@16 | Foswiki::Search::Node::
1 | 1 | 1 | 8µs | 21µs | BEGIN@18 | Foswiki::Search::Node::
1 | 1 | 1 | 4µs | 4µs | BEGIN@21 | Foswiki::Search::Node::
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 | |||||
7 | Foswiki::Search::Node is a refactoring mid-step that contains the legacy SEARCH tokens | ||||
8 | |||||
9 | If if becomes useful, it will become a set of Nodes as for Foswiki::Query | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | package Foswiki::Search::Node; | ||||
14 | |||||
15 | 2 | 27µs | 2 | 39µ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 # spent 26µs making 1 call to Foswiki::Search::Node::BEGIN@15
# spent 12µs making 1 call to strict::import |
16 | 2 | 23µs | 2 | 19µ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 # spent 14µs making 1 call to Foswiki::Search::Node::BEGIN@16
# spent 5µs making 1 call to warnings::import |
17 | |||||
18 | 2 | 33µs | 2 | 34µ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 # spent 21µs making 1 call to Foswiki::Search::Node::BEGIN@18
# spent 13µs making 1 call to Assert::import |
19 | 2 | 28µs | 2 | 207µ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 # spent 108µs making 1 call to Foswiki::Search::Node::BEGIN@19
# spent 99µs making 1 call to Error::import |
20 | |||||
21 | 2 | 76µs | 1 | 4µ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 # spent 4µs making 1 call to Foswiki::Search::Node::BEGIN@21 |
22 | 1 | 8µs | our @ISA = ('Foswiki::Infix::Node'); | ||
23 | |||||
24 | =begin TML | ||||
25 | |||||
26 | ---++ ClassMethod new($search, $tokens, $options) | ||||
27 | |||||
28 | Construct 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 | ||||
33 | 40 | 42µs | my ( $class, $search, $tokens, $options ) = @_; | ||
34 | 40 | 112µs | my $this = | ||
35 | bless( { tokens => $tokens, search => $search, options => $options }, | ||||
36 | $class ); | ||||
37 | 40 | 119µs | return $this; | ||
38 | } | ||||
39 | |||||
40 | 1 | 3µs | 1; | ||
41 | __END__ |