X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fauto%2Fata.ml;h=6f74455462db3cbf4614e3ba3a6fb5822005e511;hp=2710465df716c0033e5e51b88a74071837c70200;hb=1972639ed4bb0aab7136e3f09d6a46398afec709;hpb=1bc0f404afcc7dde1caefc9e2ed9786ddc959502 diff --git a/src/auto/ata.ml b/src/auto/ata.ml index 2710465..6f74455 100644 --- a/src/auto/ata.ml +++ b/src/auto/ata.ml @@ -14,7 +14,7 @@ (***********************************************************************) (* - Time-stamp: + Time-stamp: *) INCLUDE "utils.ml" @@ -193,7 +193,12 @@ let create s ss = Cache.N2.iteri (fun _ _ _ b -> if b then incr n2) auto.cache2; Cache.N6.iteri (fun _ _ _ _ _ _ _ b -> if b then incr n6) auto.cache6; Format.eprintf "INFO: automaton %i, cache2: %i entries, cache6: %i entries\n%!" - (auto.id :> int) !n2 !n6 + (auto.id :> int) !n2 !n6; + let c2l, c2u = Cache.N2.stats auto.cache2 in + let c6l, c6u = Cache.N6.stats auto.cache6 in + Format.eprintf "INFO: cache2: length: %i, used: %i, occupation: %f\n%!" c2l c2u (float c2u /. float c2l); + Format.eprintf "INFO: cache6: length: %i, used: %i, occupation: %f\n%!" c6l c6u (float c6u /. float c6l) + ); auto