Filename | /var/www/foswikidev/core/lib/Foswiki/Store/Interfaces/SearchAlgorithm.pm |
Statements | Executed 21 statements in 281µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 16µs | 28µs | BEGIN@4 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 9µs | 34µs | BEGIN@6 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 9µs | 13µs | BEGIN@5 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 4µs | 4µs | BEGIN@10 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 4µs | 4µs | BEGIN@8 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 4µs | 4µs | BEGIN@17 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 3µs | 3µs | BEGIN@11 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 3µs | 3µs | BEGIN@14 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 3µs | 3µs | BEGIN@12 | Foswiki::Store::Interfaces::SearchAlgorithm::
1 | 1 | 1 | 3µs | 3µs | BEGIN@9 | Foswiki::Store::Interfaces::SearchAlgorithm::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | package Foswiki::Store::Interfaces::SearchAlgorithm; | ||||
3 | |||||
4 | 2 | 27µs | 2 | 40µs | # spent 28µs (16+12) within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@4 which was called:
# once (16µs+12µs) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 4 # spent 28µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@4
# spent 12µs making 1 call to strict::import |
5 | 2 | 23µs | 2 | 16µs | # spent 13µs (9+4) within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@5 which was called:
# once (9µs+4µs) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 5 # spent 13µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@5
# spent 4µs making 1 call to warnings::import |
6 | 2 | 28µs | 2 | 58µs | # spent 34µs (9+24) within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@6 which was called:
# once (9µs+24µs) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 6 # spent 34µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@6
# spent 24µs making 1 call to Exporter::import |
7 | |||||
8 | 2 | 19µs | 1 | 4µs | # spent 4µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@8 which was called:
# once (4µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 8 # spent 4µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@8 |
9 | 2 | 18µs | 1 | 3µs | # spent 3µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@9 which was called:
# once (3µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 9 # spent 3µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@9 |
10 | 2 | 19µs | 1 | 4µs | # spent 4µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@10 which was called:
# once (4µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 10 # spent 4µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@10 |
11 | 2 | 18µs | 1 | 3µs | # spent 3µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@11 which was called:
# once (3µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 11 # spent 3µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@11 |
12 | 2 | 19µs | 1 | 3µs | # spent 3µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@12 which was called:
# once (3µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 12 # spent 3µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@12 |
13 | |||||
14 | 2 | 59µs | 1 | 3µs | # spent 3µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@14 which was called:
# once (3µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 14 # spent 3µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@14 |
15 | 1 | 11µs | our @ISA = ('Foswiki::Store::Interfaces::QueryAlgorithm'); | ||
16 | |||||
17 | # spent 4µs within Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@17 which was called:
# once (4µs+0s) by Foswiki::Store::Interfaces::QueryAlgorithm::BEGIN@8 at line 22 | ||||
18 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
19 | require locale; | ||||
20 | import locale(); | ||||
21 | } | ||||
22 | 1 | 31µs | 1 | 4µs | } # spent 4µs making 1 call to Foswiki::Store::Interfaces::SearchAlgorithm::BEGIN@17 |
23 | |||||
24 | =begin TML | ||||
25 | |||||
26 | ---+ package Foswiki::Store::Interfaces::SearchAlgorithm | ||||
27 | |||||
28 | DEPRECATED - all SearchAlgorithm and QueryAlgorithm use the same calling convention. | ||||
29 | |||||
30 | Interface to search algorithms. | ||||
31 | Implementations of this interface are found in Foswiki/Store/SearchAlgorithms. | ||||
32 | |||||
33 | ---++ StaticMethod query( $query, $webs, $inputTopicSet, $session, $options ) -> $infoCache | ||||
34 | * =$query= - A Foswiki::Search::Node object. The tokens() method of | ||||
35 | this object returns the list of search tokens. | ||||
36 | * =$web= - name of the web being searched, or may be an array reference | ||||
37 | to a set of webs to search | ||||
38 | * =$inputTopicSet= - iterator over names of topics in that web to search | ||||
39 | * =$session= - reference to the store object | ||||
40 | * =$options= - hash of requested options | ||||
41 | This is the top-level interface to a search algorithm. | ||||
42 | |||||
43 | Return a Foswiki::Search::ResultSet. | ||||
44 | |||||
45 | =cut | ||||
46 | |||||
47 | 1 | 3µs | 1; | ||
48 | |||||
49 | __END__ |