TIL that Chrome has a great built in Node JS profiler.
You can connect the Chrome debugger to your Node code, and get Performance metrics just like you can with a website!
See https://developer.chrome.com/docs/devtools/performance/nodejs for full instructions.
One tip is that you need to add a timeout before the code you want to profile, so that you have time to hit the Record button in the DevTools “Performance” tab.
[#]coding, #webdev, #debugging, #nodejs
(1/2)
=> More informations about this toot | View the thread | More toots from ragman@jawns.club
=> View coding tag | View webdev tag | View debugging tag | View nodejs tag This content has been proxied by September (3851b).Proxy Information
text/gemini