Below command would create a log.
node --prof app.js
To understand the log you would need to pass it to --prof-process.
node --prof-process <ABOVE-CREATED-LOG>
Run
node --inspect app.js
- Open chrome, chrome://inspect
- Click on the app.
- Goto console for debugging.
- Profiler and Memory can be used for CPU and Memory profiling.