Blog

The OCaml Planet RSS

Articles and videos contributed by both experts, companies and passionate developers from the OCaml community. From in-depth technical articles, project highlights, community news, or insights into Open Source projects, the OCaml Planet RSS feed aggregator has something for everyone.

Want your Blog Posts or Videos to Show Here?

To contribute a blog post, or add your RSS feed, check out the Contributing Guide on GitHub.

Using memtrace on Windows

It is said that good things come to those who wait. Jacques-Henri Jourdan demonstrated Statistically profiling memory in OCaml at the 2016 OCaml Workshop and experimental branches of it existed for OCaml 4.03–4.07 in opam. Parts of the work were merged in OCaml 4.10 and the final sections landed with 4.11. The compiler provides support in the form of a series of hooks in various parts of the runtime’s allocation and garbage collection routines. A few weeks ago, Jane Street released memtrace and Memtrace viewer and earlier this week blogged about its use. I thought I’d quickly share the experience of using it on native Windows.

08 Oct 2020

David Allsopp's Blog

Read Article
Finding memory leaks with Memtrace

Memory issues can be hard to track down. A function that onlyallocates a few small objects can cause a space leak if it’s calledoften enough and those object...

06 Oct 2020

Jane Street Tech Blog

Read Article