# \#memtrace

**URL:** https://discuss.ocaml.org/tag/memtrace/759.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [How should I know what curently occupies the heap?](https://discuss.ocaml.org/t/how-should-i-know-what-curently-occupies-the-heap/18454)

<div class="topic-metadata">

**Author:** [@Kakadu](https://discuss.ocaml.org/u/Kakadu)\
**Replies:** 1\
**Last updated:** [August 14, 2026, 4:28pm UTC](https://discuss.ocaml.org/t/how-should-i-know-what-curently-occupies-the-heap/18454 "2026-08-14T16:28:13Z")

</div>

My OCaml is 5.3 and I want to know what occupies heap in a certain time (location in the code is known). I tried to use memtrace, but it is not exactly what is needed because it traces what has been allocation from point…
