From 66094c3c716e194ddb413ef72007d2b7b44ee721 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 21 Oct 2018 03:43:22 +0200 Subject: [PATCH] squash! tracing: forbid tracing modifications from worker threads --- doc/api/tracing.md | 3 ++ src/env.cc | 4 +-- .../test-trace-events-api-worker-disabled.js | 11 ++++++++ ...-events-dynamic-enable-workers-disabled.js | 28 +++++++++++++++++++ 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 test/parallel/test-trace-events-api-worker-disabled.js create mode 100644 test/parallel/test-trace-events-dynamic-enable-workers-disabled.js diff --git a/doc/api/tracing.md b/doc/api/tracing.md index 04db3f12f42e2e..10b2f61ea5a5b9 100644 --- a/doc/api/tracing.md +++ b/doc/api/tracing.md @@ -82,6 +82,8 @@ as the one used by `process.hrtime()` however the trace-event timestamps are expressed in microseconds, unlike `process.hrtime()` which returns nanoseconds. +The features from this module are not available in [`Worker`][] threads. + ## The `trace_events` module