Add -doc-stats options to print document statistics.
[SXSI/xpathcomp.git] / src / options.ml
index 0c7c92d..1e349a6 100644 (file)
@@ -19,6 +19,7 @@ let text_index_type = ref 0
 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
@@ -89,6 +90,8 @@ let spec = Arg.align
     "-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"; ] @