阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js trace_events.createTracing

      Node.js trace_events.createTracing

      新增于: v10.0.0

      • options < Object>
        • categories < string[]> An array of trace category names. Values included in the array are coerced to a string when possible. An error will be thrown if the value cannot be coerced.
        • Returns:.

      Creates and returns a Tracing object for the given set of categories.

      const trace_events = require('trace_events');
      const categories = ['node.perf', 'node.async_hooks'];
      const tracing = trace_events.createTracing({ categories });
      tracing.enable();
      // do stuff
      tracing.disable();
      

      更多内容请参考:Node.js trace_events 跟踪事件,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录