performance.timerify(fn[, options])


  • fn <Function>

  • options <Object>

    • histogram <RecordableHistogram> 使用 perf_hooks.createHistogram() 创建的直方图对象,以纳秒为单位记录运行时间。

      ¥histogram <RecordableHistogram> A histogram object created using perf_hooks.createHistogram() that will record runtime durations in nanoseconds.

这是 perf_hooks.timerify() 的别名。

¥This is an alias of perf_hooks.timerify().

此属性是 Node.js 的扩展。它在 Web 浏览器中不可用。

¥This property is an extension by Node.js. It is not available in Web browsers.