TLDR Web Dev · QUICK LINKS

OPTIMIZING NODE.JS PERFORMANCE

developer.chrome.com1 min read

Summary from the TLDR Web Dev newsletter

To profile the CPU usage of a Node.js application, launch the application with the ‘--inspect flag' and connect to it using Chrome DevTools via ‘chrome://inspect'. Start and stop the CPU profiling using the Record button in the Performance panel of DevTools to capture how CPU time is spent during application execution.