Record heap allocation data.
Section: Memory, Profiling, and Coverage
Generate heap profile
bash
bash
node --heap-prof app.jsExplanation
Helpful when tracking memory growth and allocations.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Memory, Profiling, and Coverage