Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to profile my code using CoffeeScript for Node.js?

I know I can profile with --prof when running node myfile.js, but what if I run coffee myfile.coffee? Let's assume I can't just compile to .js, because there are A LOT of dependences in the file.

How can I run a v8 profiler?

like image 669
Shamoon Avatar asked Dec 17 '22 06:12

Shamoon


2 Answers

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

like image 195
Marius Kjeldahl Avatar answered May 19 '23 12:05

Marius Kjeldahl


Looks like you can pass the --nodejs command line parameter to coffee and anything after that will get passed directly to node. Thanks to https://twitter.com/#!/oluwie who doesn't want to take credit but told me the answer

like image 29
Shamoon Avatar answered May 19 '23 11:05

Shamoon