I am looking for a method to do precise Node.JS
profiling of script execution times on Linux.
There are interesting projects like the NodeTime.com Performance Profiler, but this profiles the timing of I/O httprequests and such, not execution time of lines of code.
I am looking for a way to figure out exactly where I can optimize my Javascript, where most of the time is spent, etc.
One interesting method I've seen is trying to create a FlameGraph using DTrace to profile Node.JS.
However, dtrace
is very Solaris-specific.
dtrace
can be found in the sytemtap-sdt-dev
package. However, stap dtrace
is not the same, and lacks all relevant hooks/probes.Oracle
port, but noone would recommend it. Apparently, it only has about 0,1 percent of the probes the Paul Fox port. (Which is ironic, because Oracle
was formerly Sun
, original authors of dtrace
for Solaris
)How, in Linux, using the terminal or using Eclipse, can I profile the code of my Node.JS scripts? I'm looking for something specific like the Zend Profiler shows execution times of each command in code of PHP scripts.
"look" is a very good tool made by Vadim for profiling NodeJS app.
Take a look here: