Refactor the statistics gathering code in run.ml
[tatoo.git] / src / run.mli
index 8476326..c942277 100644 (file)
 (*                                                                     *)
 (***********************************************************************)
 
-module Make (T : Tree.S) :
+
+type stats = private { mutable pass : int;
+               tree_size : int;
+               mutable fetch_trans_cache_access : int;
+               mutable fetch_trans_cache_hit : int;
+               mutable eval_trans_cache_access : int;
+               mutable eval_trans_cache_hit : int;
+               mutable nodes_per_run : int list;
+             }
+
+module Make (T : Tree.S) (L : Node_list.S with type node = T.node) :
   sig
-    val eval : Ata.t -> T.t -> T.node -> T.node list
+    val eval : Ata.t -> T.t -> L.t -> L.t
+    val full_eval : Ata.t -> T.t -> L.t -> (State.t * L.t) list
+    val stats : unit -> stats
   end