Display caching and iteration statistics at the end of evaluation.
authorKim Nguyễn <kn@lri.fr>
Sat, 16 Mar 2013 05:57:30 +0000 (06:57 +0100)
committerKim Nguyễn <kn@lri.fr>
Sat, 16 Mar 2013 05:57:30 +0000 (06:57 +0100)
src/auto/eval.ml

index 4a27fa5..e4def93 100644 (file)
@@ -14,7 +14,7 @@
 (***********************************************************************)
 
 (*
-  Time-stamp: <Last modified on 2013-03-15 18:32:22 CET by Kim Nguyen>
+  Time-stamp: <Last modified on 2013-03-15 23:46:44 CET by Kim Nguyen>
 *)
 
 INCLUDE "utils.ml"
@@ -125,6 +125,7 @@ END
       redo := top_down_run auto tree node cache !iter;
       incr iter;
     done;
+    at_exit (fun () -> eprintf "INFO: %i iterations\n" !iter);
     let r = get_results auto tree node cache in
     TRACE(Html.gen_trace (module T : Tree.Sig.S with type t = T.t) (tree));
     r