]> matita.cs.unibo.it Git - helm.git/blobdiff - components/extlib/hExtlib.ml
full script generation
[helm.git] / components / extlib / hExtlib.ml
index 8a0c8cf7d69fb5578d2a851e921d73d5a6546554..57511db0e5205d7a61bee0f074f3631d88815914 100644 (file)
@@ -27,7 +27,7 @@
 
 (** PROFILING *)
 
-let profiling_enabled = ComponentsConf.profiling
+let profiling_enabled = false ;; (* ComponentsConf.profiling *)
 
 let something_profiled = ref false
 
@@ -365,3 +365,7 @@ let raise_localized_exception ~offset floc exn =
    { flocb with Lexing.pos_cnum = x }, { floce with Lexing.pos_cnum = y }
  in
   raise (Localized (floc, exn))
+
+let estimate_size x = 
+  4 * (String.length (Marshal.to_string x [])) / 1024
+