You can also use ocaml-memprof, a compiler patch (3.12.0 and 3.12
1) written by Fabrice Le Fessant, that adds memory profiling features to ocaml programs.
EDIT
Now you have ocp-memprof
, an OCaml Memory Profiler that you can use online. It is available on http://memprof.typerex.org.