Add performances counter option
[SXSI/xpathcomp.git] / src / options.ml
index 10c7633..d72763e 100644 (file)
@@ -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";