我需要调试nodejs进程的100% cpu使用率。我发现node --prof myapp.js非常有用。现在我有了另一个将派生子进程的应用程序,我需要调试该子进程。下面是我如何分叉这个过程的。
require('child_process').fork("childfile.js", ["arg1","arg2], {silent: true});现在我的问题是,是否有可能分析子进程,那么我如何通过"--prof“选项。
发布于 2017-07-05 18:50:57
require('child_process').fork("childfile.js", ["arg1","arg2], {silent: true,execArgv:["--prof"]});https://stackoverflow.com/questions/44923520
复制相似问题