22 #ifndef XAPIAN_INCLUDED_PERFTEST_H
23 #define XAPIAN_INCLUDED_PERFTEST_H
54 void write(
const std::string & text);
64 bool open(
const std::string & logpath);
73 const std::map<std::string, std::string> & params);
static Xapian::Query query(Xapian::Query::op op, const string &t1=string(), const string &t2=string(), const string &t3=string(), const string &t4=string(), const string &t5=string(), const string &t6=string(), const string &t7=string(), const string &t8=string(), const string &t9=string(), const string &t10=string())
void repetition_end()
End a repetition of the tests.
Xapian::doccount indexing_addcount
void indexing_begin(const std::string &dbname, const std::map< std::string, std::string > ¶ms)
Log the start of an indexing run.
bool diversifying_started
bool indexing_unlogged_changes
void diversify_start()
Log the start of diversification.
void testcase_end()
End a testcase.
void search_end(const Xapian::Query &query, const Xapian::MSet &mset)
Log the completion of a search.
void close()
Flush and close the log file.
void diversifying_start(const std::string &description)
Log the start of a diversification run.
void searching_end()
Log the end of a search run.
void search_start()
Log the start of a search.
void repetition_begin(int num)
Start a repetition of the tests.
void diversify_end(Xapian::doccount k, Xapian::doccount r, const Xapian::MSet &dset)
Log the completion of diversification.
double diversifying_timer
void indexing_log()
Write a log entry for the current indexing run.
void indexing_end()
Log the end of an indexing run.
void searching_start(const std::string &description)
Log the start of a search run.
double last_indexlog_timer
void diversifying_end()
Log the end of a diversification run.
bool open(const std::string &logpath)
Open a file to log to.
void write(const std::string &text)
void testcase_begin(const std::string &testcase)
Start a testcase.
void indexing_add()
Log the addition of a document in an indexing run.
Class representing a list of search results.
Class representing a query.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Public interfaces for the Xapian library.