janestreet/memtrace_viewer

Interactive memory profiler based on Memtrace

35

stars

49

commits

OCaml

primary language

Jul 10, 2026

updated

Browse cluster: OCaml metaprogramming and PPX

README

Memtrace viewer

OCaml now has runtime support for statistical memory profiling. Given a set of callbacks and a sampling rate it will run these callbacks on a sample of all allocations done by an OCaml program.

Unlike the spacetime memory profiler, this support aims to have low enough overhead to use in production and does not require any special compilation options.

Memtrace is a library built on top of this support, which generates compact traces of a program's memory use.

The Memtrace Viewer provides a web UI for exploring a trace produced with the Memtrace library.

Tutorial

See this blog post for instructions on how to use memtrace viewer.

Contributors

public-release

25 commits

aalekseyev

16 commits

xclerc

6 commits

staronj

2 commits

janestreet/memtrace_viewer

Interactive memory profiler based on Memtrace

35

stars

49

commits

OCaml

primary language

Jul 10, 2026

updated

Browse cluster: OCaml metaprogramming and PPX

README

Memtrace viewer

OCaml now has runtime support for statistical memory profiling. Given a set of callbacks and a sampling rate it will run these callbacks on a sample of all allocations done by an OCaml program.

Unlike the spacetime memory profiler, this support aims to have low enough overhead to use in production and does not require any special compilation options.

Memtrace is a library built on top of this support, which generates compact traces of a program's memory use.

The Memtrace Viewer provides a web UI for exploring a trace produced with the Memtrace library.

Tutorial

See this blog post for instructions on how to use memtrace viewer.

Contributors

public-release

25 commits

aalekseyev

16 commits

xclerc

6 commits

staronj

2 commits

Languages

OCaml

97.6%

CSS

2.3%