rules_ocaml icon indicating copy to clipboard operation
rules_ocaml copied to clipboard

ocaml runtime: debug mode and -runtime-variant

Open mobileink opened this issue 4 years ago • 1 comments

For some reason my ppx executable is printing memory stats:

INFO: From ppx_transform ocaml_module: demos//ppx/adjunct_deps:_Test:
### OCaml runtime: debug mode ###
Initial minor heap size: 256k words
Initial major heap size: 992k bytes
Initial space overhead: 80%
Initial max overhead: 500%
Initial heap increment: 15%
Initial allocation policy: 0
Initial smoothing window: 1
Growing page table to 2048 entries
<>Starting new major GC cycle
### OCaml runtime: heap check ###
Growing gray_vals to 32k bytes
!<>%Target //ppx/adjunct_deps:test up-to-date:
  bazel-bin/ppx/adjunct_deps/test

I've only seen this when a ppx transform runs. No idea what's causing it.

mobileink avatar Sep 10 '21 02:09 mobileink

ok, default for --@ppx//debug was true, which caused -runtime-variant d to be added to cmd line.

TODO: add a flag to control -runtime-variant

mobileink avatar Sep 10 '21 02:09 mobileink