There is an instrumentation mode for the OCaml GC whose usage I have described in a blog post and on the caml-list: http://prl.ccs.neu.edu/blog/2016/05/24/measuring-gc-latencies-in-haskell-ocaml-racket/ https://sympa.inria.fr/sympa/arc/caml-list/2016-05/msg00219.html (I am realizing that the simple change I proposed, of building the instrumented runtime by default, was forgotten, and will submit a pull request shortly -- hopefully it will be present in 4.07... In the meantime, people have to build the compiler with the -with-instrumented-runtime flag explicitly set.) On Mon, Dec 11, 2017 at 7:53 PM, Julia Lawall wrote: > > > On Tue, 28 Nov 2017, Yawar Amin wrote: > > > Hi Juli, you can take a lookat https://realworldocaml. > org/v1/en/html/understanding-the-garbage-collecto > > r.html for some explanations of the various knobs. Specifically, the > in-text > > note sections (marked with the icon of two pages) give some helpful > hints. > > The first one on the page is 'Setting the Size of the Minor Heap'. > > Is it possible to know when a major GC starts, to be able to measure the > time spent? I saw the verbose flag in the control structure, but that > just prints a message. I don't see how to get the time. > > thanks, > julia > > > Regards, > > > > Yawar > > > > On Tue, Nov 28, 2017 at 1:11 PM, Julia Lawall > wrote: > > Hello, > > > > Is there any reasonable way to reduce the amount of garbage > > collection > > activity in an OCaml program? I see various knobs in the > > control > > structure, but I don't know what the impact of changing the > > values would > > be. > > > > thanks, > > juli > > > > -- > > Caml-list mailing list. Subscription management and archives: > > https://sympa.inria.fr/sympa/arc/caml-list > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > > > > > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >