Files
node/benchmark/diagnostics_channel
Romain Lanz 2befec51ae diagnostics_channel: lazily create tracing context
Default parameters are evaluated before the function body, so the
tracing context is allocated before the no-subscriber fast path.

Initialize it only for subscribed traces. Preserve method arity with an
undefined default and preserve explicit null behavior.

Add focused regression coverage and reusable TracingChannel benchmarks.

Signed-off-by: Romain Lanz <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/65513
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
2026-09-02 16:43:10 +00:00
..
…