projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -doc-stats options to print document statistics.
[SXSI/xpathcomp.git]
/
src
/
options.ml
diff --git
a/src/options.ml
b/src/options.ml
index
0c7c92d
..
1e349a6
100644
(file)
--- a/
src/options.ml
+++ b/
src/options.ml
@@
-19,6
+19,7
@@
let text_index_type = ref 0
let do_perf = ref false
let twopass = ref false
let repeat = ref 1
let do_perf = ref false
let twopass = ref false
let repeat = ref 1
+let docstats = ref false
let set_index_type = function
| "default" -> text_index_type := 0
let set_index_type = function
| "default" -> text_index_type := 0
@@
-89,6
+90,8
@@
let spec = Arg.align
"-r", Arg.Set_int(repeat),
" repeat query execution n time (benchmarking only, default 1)";
"-r", Arg.Set_int(repeat),
" repeat query execution n time (benchmarking only, default 1)";
+ "-doc-stats", Arg.Set(docstats),
+ " Compute document statistics (performs full traversal)";
"-v", Arg.Set(verbose), " verbose mode"; ] @
"-v", Arg.Set(verbose), " verbose mode"; ] @