(no title)
notcrazylol | 1 year ago
I was wondering if there is a tool that can profile nodejs code? I did find some options(most of them are web tools) but they dont seem to give out information as much as mitata about what and where my code is used more often although mitata is a benchmarking tool.
What profilers do you use? Thanks :)
jitl|1 year ago
Then, connect with Chrome developer tools. You should see a NodeJS icon in the devtools if there’s a node process on your machine listening on the devtools port. You can use SSH port forwarding or similar to connect to processes on other machines like in a production environment.
Use the Chrome developer tools to take a profile, save it to disk, then analyze it using https://profiler.firefox.com
In production we use Datadog to collect and inspect profiles.
_andrei_|1 year ago