{ "source": "doc/api/tracing.md", "modules": [ { "textRaw": "Tracing", "name": "tracing", "desc": "

Trace Event provides a mechanism to centralize tracing information generated by\nV8, Node core, and userspace code.

\n

Tracing can be enabled by passing the --trace-events-enabled flag when starting a\nNode.js application.

\n

The set of categories for which traces are recorded can be specified using the\n--trace-event-categories flag followed by a list of comma separated category names.\nBy default the node and v8 categories are enabled.

\n
node --trace-events-enabled --trace-event-categories v8,node server.js\n
\n

Running Node.js with tracing enabled will produce log files that can be opened\nin the chrome://tracing\ntab of Chrome.

\n", "type": "module", "displayName": "Tracing" } ] }