- Profiling Node.js Applications
- Flame graphs
- Linux Perf
- Heap Profiler
- Heap Snapshot
- GC (Garbage Collection) Traces
- Visual Studio Code: Performance Profiling JavaScript
NODE_ENV=production node --cpu-prof ./node_modules/webpack-cli/bin.js
NODE_ENV=production node --heap-prof ./node_modules/webpack-cli/bin.js
NODE_ENV=production node --expose-gc ./node_modules/webpack-cli/bin.js
node --trace-gc --max-old-space-size=4000 ./node_modules/webpack-cli/bin.jsnode --expose-gc --no-compilation-cache ./node_modules/jest-cli/bin/jest.js --logHeapUsage
node --heap-prof --expose-gc --no-compilation-cache ./node_modules/jest-cli/bin/jest.js --logHeapUsage