Hmm. I went to consult the dune docs here,
But didn’t see explicit JSOO release mode callouts.
Ideas:
- assert that --profile=release activates the --opt=3 flag when calling into js_of_ocaml
- probably have to dig thru the dune source
- add options to compile with sourcemaps via
(js_of_ocaml (<js_of_ocaml-options>)), and create heatmaps in your profiling