Node.js 的 CPU 分析器扩展:async-profile
jopen
11年前
async-profile 是一个 Node.js 的 CPU 分析器扩展。可以通过各种方法来分析出你的代码执行所占用的 CPU 时间。
示例代码:
var p = new AsyncProfile() Promise.try(doWork).finally(function () { p.stop(); });