Does anyone know why "node --prof test.js" not work ?
What I did are followings:
git clone https://github.com/joyent/node.git
./configure
make
sudo make install
cd node/deps/v8/
make dependencies
make native
vim test.js
node --prof test.js
tools/linux-tick-processor v8.log
The results are:
Statistical profiling result from v8.log, (0 ticks, 0 unaccounted, 0 excluded).
You can use the official online tool - Tick processor - or you could try
npm install tick
and then running
node-tick-processor
in your program.