X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Foptions.ml;fp=src%2Foptions.ml;h=d72763ec8ba29a2277cb223530acf3716a4db5a1;hb=a84e4fba7daf4f600958487d88f0b733fb19042e;hp=10c763397e98b45ab1723236e712233f7f1f3491;hpb=3627fb7a0e81c5104ab7d776ded6433349194990;p=SXSI%2Fxpathcomp.git diff --git a/src/options.ml b/src/options.ml index 10c7633..d72763e 100644 --- a/src/options.ml +++ b/src/options.ml @@ -13,6 +13,7 @@ let bottom_up = ref false let no_jump = ref false let verbose = ref false let text_index_type = ref 0 +let do_perf = ref false (* Only valid if compiled with -DTRACE *) let trace_file = ref "trace.dot" @@ -55,6 +56,8 @@ let spec = Arg.align "-nj", Arg.Set(no_jump), " disable jumping"; + "-p", Arg.Set(do_perf), " dump perf counters (Linux only)"; + "-index-type", Arg.Symbol ([ "default"; "swcsa"; "rlcsa" ], set_index_type), " choose text index type";