Skip to main content

createTracing

function createTracing
Jump to headingcreateTracing(options: CreateTracingOptions): Tracing

Deno compatibility

This symbol is a non-functional stub.

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

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

Parameters Jump to heading

Return Type Jump to heading

Back to top