X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fmain.ml;h=8c7c81f3cfd3207cf51e3b706b3606087ccac341;hb=a84e4fba7daf4f600958487d88f0b733fb19042e;hp=1981fc2eec5102ff172e4f56d2a63e6b25b10f3c;hpb=3627fb7a0e81c5104ab7d776ded6433349194990;p=SXSI%2Fxpathcomp.git diff --git a/src/main.ml b/src/main.ml index 1981fc2..8c7c81f 100644 --- a/src/main.ml +++ b/src/main.ml @@ -19,10 +19,11 @@ let tuned_gc = { default_gc with Gc.space_overhead = 100; } - let mk_runtime run auto doc arg count print outfile = fun () -> + if !Options.do_perf then start_perf (); let r = time ~count:1 ~msg:"Execution time" (run auto doc) arg in + if !Options.do_perf then stop_perf (); Printf.eprintf "Number of results: %i\n%!" (count r); match outfile with None -> ()