From: Kim Nguyễn Date: Sat, 16 Mar 2013 05:57:30 +0000 (+0100) Subject: Display caching and iteration statistics at the end of evaluation. X-Git-Tag: v0.1~110 X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=commitdiff_plain;h=9590bc6b3e882cfb256507be8966917446f84e98 Display caching and iteration statistics at the end of evaluation. --- diff --git a/src/auto/eval.ml b/src/auto/eval.ml index 4a27fa5..e4def93 100644 --- a/src/auto/eval.ml +++ b/src/auto/eval.ml @@ -14,7 +14,7 @@ (***********************************************************************) (* - Time-stamp: + Time-stamp: *) 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