able the
<code>node</code>, <code>node.async_hooks</code>, and <code>v8</code> trace event categories by default.</p>
<pre><code class="language-txt">node --trace-events-enabled

// is equivalent to

node --trace-event-categories v8,node,node.async_hooks
</code></pre>
<p>Alternatively, trace events may be enabled using the <code>trace_events</code> module:</p>
<pre><code class="language-js">const trace_events = require('trace_events');
const tracing = trace_events.createTracing({ categories: ['node.perf'] }