Lines Matching refs:trace
12 Tracing can be enabled with the `--trace-event-categories` command-line flag
13 or by using the `trace_events` module. The `--trace-event-categories` flag
19 * `node.async_hooks`: Enables capture of detailed [`async_hooks`][] trace data.
25 * `node.dns.native`: Enables capture of trace data for DNS queries.
27 * `node.fs.sync`: Enables capture of trace data for file system sync methods.
33 * `node.promises.rejections`: Enables capture of trace data tracking the number
35 * `node.vm.script`: Enables capture of trace data for the `vm` module's
42 node --trace-event-categories v8,node,node.async_hooks server.js
45 Prior versions of Node.js required the use of the `--trace-events-enabled`
46 flag to enable trace events. This requirement has been removed. However, the
47 `--trace-events-enabled` flag *may* still be used and will enable the
48 `node`, `node.async_hooks`, and `v8` trace event categories by default.
51 node --trace-events-enabled
55 node --trace-event-categories v8,node,node.async_hooks
58 Alternatively, trace events may be enabled using the `trace_events` module:
63 tracing.enable(); // Enable trace event capture for the 'node.perf' category
67 tracing.disable(); // Disable trace event capture for the 'node.perf' category
71 in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool)
76 be specified with `--trace-event-file-pattern` that accepts a template
80 node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
85 However the trace-event timestamps are expressed in microseconds,
105 `tracing.enable()` method adds the categories to the set of enabled trace event
107 set of enabled trace event categories.
116 A comma-separated list of the trace event categories covered by this
126 Only trace event categories *not* covered by other enabled `Tracing` objects
127 and *not* specified by the `--trace-event-categories` flag will be disabled.
166 * `categories` {string[]} An array of trace category names. Values included
189 Returns a comma-separated list of all currently-enabled trace event
190 categories. The current set of enabled trace event categories is determined
192 enabled using the `--trace-event-categories` flag.
195 `node --trace-event-categories node.perf test.js` will print