From 9590bc6b3e882cfb256507be8966917446f84e98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Sat, 16 Mar 2013 06:57:30 +0100 Subject: [PATCH] Display caching and iteration statistics at the end of evaluation. --- src/auto/eval.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.17.1