1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950(******************************************************************************)(* *)(* Alt-Ergo: The SMT Solver For Software Verification *)(* Copyright (C) 2013-2018 --- OCamlPro SAS *)(* *)(* This file is distributed under the terms of the license indicated *)(* in the file 'License.OCamlPro'. If 'License.OCamlPro' is not *)(* present, please contact us to clarify licensing. *)(* *)(******************************************************************************)openOptionsopenFormatopenGc(*
major_collections; (* num of completed major collection cycles *)
minor_collections; (* num of minor collections *)
stack_size; (* current size of the stack, in word *)
heap_words; (* tot size of the major heap *)
top_heap_words; (* Max size reached by major heap *)
minor_words; (* num of alloc words in minor heap since beginning *)
major_words; (* num of alloc words in major heap, since beginning *)
*)let()=ifdebug_gc()thenbeginlettmp=ref(quick_stat())inignore(create_alarm(fun()->lete=quick_stat()inletd=!tmpinfprintffmt"[GC infos]======================================@.";fprintffmt"[major collections] %d th@."e.major_collections;fprintffmt"[minor collections] %d th@."e.minor_collections;fprintffmt"[stack used] %d words@."e.stack_size;fprintffmt"[size of major heap] %d words@."e.heap_words;fprintffmt"[max size major heap] %d words@."e.top_heap_words;fprintffmt"[major words diff] %0f Kwords@."((e.major_words-.d.major_words)/.1000.);fprintffmt"[minor words diff] %0f Kwords@."((e.minor_words-.d.minor_words)/.1000.);tmp:=e))end