function createTracing
Usage in Deno
import { createTracing } from "node:trace_events";
createTracing(options: CreateTracingOptions): Tracing
Creates and returns a Tracing
object for the given set of categories
.
const trace_events = require('node:trace_events'); const categories = ['node.perf', 'node.async_hooks']; const tracing = trace_events.createTracing({ categories }); tracing.enable(); // do stuff tracing.disable();
options: CreateTracingOptions
.