4
我需要調試我的nodejs進程的100%cpu使用情況。我發現node --prof myapp.js
是非常有幫助的。現在我有另一個應用程序將fork子進程,我需要調試該子進程。這是我如何分配過程。Nodejs cpu分析
require('child_process').fork("childfile.js", ["arg1","arg2], {silent: true});
現在我的問題是,是否有可能配置子進程,那麼我怎麼能通過「--prof」選項。
檢查此鏈接https://stackoverflow.com/questions/16840623/how-to-debug-node-js-child-forked-process 可能的這種重複 – Shashank