Print V8 garbage collection events.
Section: Memory, Profiling, and Coverage
Trace GC activity
bash
bash
node --trace-gc app.jsExplanation
Helpful when investigating memory pressure or GC pauses.
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