Tools for examining heap graph
We have System.dumpHeap()
which dumps SpiderMonkey's heap to a file. This can help tracking down memory leaks, but the dump file is hard to read. I found a stale branch which includes a Python script for turning the dump file into a heap graph with dot
.