🇵🇸 Donate eSIMs to Gaza 🇵🇸

#debugging Notes

Subscribe with RSS or follow me on Mastodon!

↩ All Notes
  1. (Permalink)

    #coding #webdev #debugging #nodejs

    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.

    This helped me narrow down what had been making my blog generation scripts run slower. It’s a nice debugging experience!

    Discuss on Mastodon