Hey y’all, last year I gave a workshop on observability at Fun OCaml, and a few folks asked me what was available for continuous profiling, and I wasn’t aware of any solutions that supported OCaml directly.
Since then I got the opportunity to work on one, and put it into use in production over at Semgrep, and now after battle testing it for a few months I’m happy to announce Pyro Caml is now available, and on opam.
I got a good excuse to use a lot of cool OCaml tools like ocaml-rs, the runtime event system, and memprof, so needless to say it was a bunch of fun to write this
. If you’re interested in the details I have a blog post here covering them.
Currently it only supports CPU profiling, but we’re potentially going to add memory/gc profiling in the coming months. Enjoy!