-1

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?

Alex Craft
  • 13,598
  • 11
  • 69
  • 133
  • Back up and don't ask for "slowest functions". Ask ***why*** is it spending time. Then there is a [*very simple way to find out*](https://stackoverflow.com/a/27867426/23771). – Mike Dunlavey Jun 30 '20 at 13:49

1 Answers1

2

The official documentation even has "simple profiling" in the URL: https://nodejs.org/en/docs/guides/simple-profiling/

Have you tried that?

jmrk
  • 34,271
  • 7
  • 59
  • 74