Record heap snapshots

Meggin Kearney
Meggin Kearney
Sofia Emelianova
Sofia Emelianova

Learn how to record heap snapshots with Memory > Profiles > Heap snapshot and find memory leaks.

The heap profiler shows memory distribution by your page's JavaScript objects and related DOM nodes. Use it to take JS heap snapshots, analyze memory graphs, compare snapshots, and find memory leaks. For more information, see Objects retaining tree.

Take a snapshot

To take a heap snapshot:

  1. On a page you want to profile, open DevTools and navigate to the Memory panel.
  2. Select the Heap snapshot profiling type, then select a JavaScript VM instance, and click Take snapshot.