Is OCaml spacetime supposed to work? I have tried on MacOS and now Ubuntu, but I keep getting “internal errors”. Here is my system:
$ opam switch
...
4.05.0+spacetime C 4.05.0+spacetime Official 4.05.0 release with spacetime activated
4.05.0 I 4.05.0 Official 4.05.0 release
4.06.0 I 4.06.0 Official 4.06.0 release
system I system System compiler (4.02.3)
# 162 more patched or experimental compilers, use '--all' to show
$ uname -a
Linux atlas-16 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Running OCAML_SPACETIME_INTERVAL=1000 <my-ocaml-program> works fine, but when I try to run prof-spacetime I keep getting errors such as the following:
The was a bug in OCaml 4.05 that broke the spacetime viewer. The profiling was still working but the viewer wasn’t. You can use a viewer built with 4.04 to view profiles built with 4.05.
There is only one bug with spacetime in OCaml’s GitHub issue tracker: https://github.com/ocaml/ocaml/issues/7678 (I omitted old Camlp4 one, since it is being deprecated anyway).