Lines Matching refs:categories
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
16 The available categories are:
39 By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
42 node --trace-event-categories v8,node,node.async_hooks server.js
48 `node`, `node.async_hooks`, and `v8` trace event categories by default.
55 node --trace-event-categories v8,node,node.async_hooks
62 const tracing = trace_events.createTracing({ categories: ['node.perf'] });
80 node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
101 categories. Instances are created using the `trace_events.createTracing()`
105 `tracing.enable()` method adds the categories to the set of enabled trace event
106 categories. Calling `tracing.disable()` will remove the categories from the
107 set of enabled trace event categories.
109 #### `tracing.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.
131 const t1 = trace_events.createTracing({ categories: ['node', 'v8'] });
132 const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] });
150 Enables this `Tracing` object for the set of categories covered by the
166 * `categories` {string[]} An array of trace category names. Values included
171 Creates and returns a `Tracing` object for the given set of `categories`.
175 const categories = ['node.perf', 'node.async_hooks'];
176 const tracing = trace_events.createTracing({ categories });
190 categories. The current set of enabled trace event categories is determined
191 by the *union* of all currently-enabled `Tracing` objects and any categories
192 enabled using the `--trace-event-categories` flag.
195 `node --trace-event-categories node.perf test.js` will print
200 const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] });
201 const t2 = trace_events.createTracing({ categories: ['node.perf'] });
202 const t3 = trace_events.createTracing({ categories: ['v8'] });