Skip to content
Snippets Groups Projects
Commit 856e5f3c authored by Erwan Jahier's avatar Erwan Jahier
Browse files

Dump GC stat in verbosity level higher than 2

parent cd43f263
No related branches found
No related tags found
No related merge requests found
(** Time-stamp: <modified the 11/03/2009 (at 16:17) by Erwan Jahier> *) (** Time-stamp: <modified the 19/01/2010 (at 15:49) by Erwan Jahier> *)
(** Here follows a description of the different modules used by this lus2lic compiler. (** Here follows a description of the different modules used by this lus2lic compiler.
...@@ -303,6 +303,7 @@ let my_exit i = ...@@ -303,6 +303,7 @@ let my_exit i =
let main = ( let main = (
(* Compile.init_appli () ; *) (* Compile.init_appli () ; *)
parse_args (); parse_args ();
if Verbose.get_level() > 2 then Gc.set { (Gc.get ()) with Gc.verbose = 0x01 };
if !Global.run_unit_test then ( if !Global.run_unit_test then (
UnifyType.unit_test (); UnifyType.unit_test ();
exit 0 exit 0
...@@ -321,6 +322,7 @@ let main = ( ...@@ -321,6 +322,7 @@ let main = (
dump_entete !Global.oc; dump_entete !Global.oc;
Compile.doit nsl main_node; Compile.doit nsl main_node;
LicDump.dump_type_alias !Global.oc; LicDump.dump_type_alias !Global.oc;
if Verbose.get_level() > 2 then Gc.print_stat stdout;
close_out !Global.oc close_out !Global.oc
) with ) with
Sys_error(s) -> Sys_error(s) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment