Node.JS and V8 provides some advanced tools for profiling, but I'm looking for something very simple.
How to run a script, and when it finishes - print top 10 slowest functions that took most CPU time?
Node.JS and V8 provides some advanced tools for profiling, but I'm looking for something very simple.
How to run a script, and when it finishes - print top 10 slowest functions that took most CPU time?
The official documentation even has "simple profiling" in the URL: https://nodejs.org/en/docs/guides/simple-profiling/
Have you tried that?