I was recommended to use dtrace and that flamegraph plugin for node