projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add performances counter option
[SXSI/xpathcomp.git]
/
src
/
options.ml
diff --git
a/src/options.ml
b/src/options.ml
index
10c7633
..
d72763e
100644
(file)
--- 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 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"
(* 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";
"-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";
"-index-type", Arg.Symbol ([ "default"; "swcsa"; "rlcsa" ],
set_index_type),
" choose text index type";