heap snapshot
A file recording every object in a JavaScript heap at one moment and how they refer to each other, used to find memory leaks.
In more detail
Comparing snapshots taken before and after a suspected leak shows which objects keep piling up. Taking one pauses the process and needs extra memory, so be careful in production.
Related terms
- memory leak — Memory that a program keeps holding although it no longer needs it, so usage grows until the program slows down or crashes.
- retaining path — The chain of references from a garbage-collection root to an object, showing why that object cannot be freed.
- Chrome DevTools — The developer tools built into the Chrome browser for debugging, profiling and inspecting memory.
Taught in
- Diagnostic Profiling: CPU Profiler & Heap Snapshots — Node.js Internals & Backend Services