retaining path
The chain of references from a garbage-collection root to an object, showing why that object cannot be freed.
In more detail
Breaking any link in the chain lets the object be collected. The dominator tree view shows which single objects keep the most memory alive.
Related terms
- 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.
- garbage collection — The automatic freeing of memory held by objects that the program can no longer reach.
- memory leak — Memory that a program keeps holding although it no longer needs it, so usage grows until the program slows down or crashes.
Taught in
- Diagnostic Profiling: CPU Profiler & Heap Snapshots — Node.js Internals & Backend Services