Can I profile my code with CoffeeScript for Node.js?

I know that I can work with --prof when running node myfile.js , but what if I run coffee myfile.coffee ? Suppose I can't just compile .js because there are a lot of dependencies in the file.

How to run v8 profiler?

+4
source share
2 answers

It looks like you can pass the --nodejs command-line --nodejs to coffee , and everything after that will be passed directly to node. Thanks https://twitter.com/#!/oluwie who doesn’t want to take a loan, but told me the answer

+3
source

Try --nodejs PARAM . See coffee --help .

+9
source

Source: https://habr.com/ru/post/1383510/


All Articles