liveBook · Manning

Heap snapshot

A heap snapshot is a point-in-time representation of objects, memory allocations, and references in a managed runtime heap.

How 2 Manning books explain it

JavaScript in Depth

A point-in-time record of objects in a managed heap, including their sizes and reference paths from garbage-collection roots.

How it is used
Investigates managed-heap retention when memory growth suggests objects remain reachable.
How deep it goes
Defines shallow size, retained size, dominators, and retainer chains, then gives a two-snapshot comparison procedure.
Examples
Uses an uncleared interval whose captured array accumulates records and payload arrays across snapshots.
What you can do after
Diagnose/debug with it by comparing snapshots, identifying growing types, and following retainer chains to what keeps them alive.

Read how JavaScript in Depth explains heap snapshot →

Fast by Default

A heap snapshot is a captured representation of the objects and memory allocations currently held in a program's managed heap.

How it is used
Guides regression checks and leak investigations in long-lived browser applications and backend services.
How deep it goes
Explains a repeatable comparison workflow and retention patterns, but defers runtime-specific heap internals.
Examples
Uses article navigation, repeated requests, Node.js inspection, Go pprof, and Java memory analyzers.
What you can do after
Diagnose memory growth by capturing, comparing, sorting, and investigating snapshots across supported profiling tools.

Read how Fast by Default explains heap snapshot →

What to know first

Related concepts

Questions about heap snapshot

What is heap snapshot?

A heap snapshot is a point-in-time representation of objects, memory allocations, and references in a managed runtime heap.

Which Manning books explain heap snapshot?

JavaScript in Depth and Fast by Default.

What should I know before learning heap snapshot?

Manning books that teach heap snapshot usually introduce handler first.

What is heap snapshot a kind of?

Heap snapshot is a kind of snapshot. A snapshot is a fixed representation of data or system state as it existed at a particular point in time.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.