Both Chrome and Safari offer tools to take snapshots of the heap of the JavaScript VM.
They both feature GUI tools to analyze, compare them and export them to JSON. M