I need to debug 100% cpu usage of my nodejs process. I found node --prof myapp.js
is very helpful. Now I have another application that will fork child process and I need to debug that child process. here is how I was forking the process.
require('child_process').fork("childfile.js", ["arg1","arg2], {silent: true});
Now my question is that, is it possible to profile child process, then how can I pass "--prof" option.