Expand description
Node trace_events module.
Honest scope note: node-js has NO trace-event sink — it emits no
Chrome-trace / perfetto JSON and writes no node_trace.*.log file. What is
real here is the object model and its state: createTracing({categories})
returns a Tracing whose .enable()/.disable() genuinely flip its
enabled flag, whose .categories is the comma-joined category string, and
whose enabled categories are reflected by getEnabledCategories(). The
object behaves exactly as specified; it simply does not produce trace output.
This is a truthful “state, not sink” implementation, never a silent fake.
Constants§
- METHODS
- Module-level methods (
require('trace_events').createTracing(...)). - TRACING_
METHODS - Instance methods on a
Tracingobject (.enabled/.categoriesare plain data properties, not methods).
Functions§
- call
- construct
new trace_events.Tracing(...)is not part of Node’s public API, but the constructor path builds the same object ascreateTracing.- instance_
call