Skip to content
Browse files

src: expose TraceEventHelper with NODE_EXTERN

As node requires a tracing controller to be initialized embedders need
access to the TraceEventHelper so that we can actually set the tracing


PR-URL: #28724
Reviewed-By: James M Snell <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Rich Trott <>
  • Loading branch information...
MarshallOfSound authored and targos committed Jul 16, 2019
1 parent af6fe5f commit 2839298a1e38e87479650e58591eb38bbfedac29
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/tracing/trace_event.h
@@ -310,7 +310,9 @@ const int kZeroNumArgs = 0;
const decltype(nullptr) kGlobalScope = nullptr;
const uint64_t kNoId = 0;

class TraceEventHelper {
// Extern (for now) because embedders need access to TraceEventHelper.
// Refs:
class NODE_EXTERN TraceEventHelper {
static TracingController* GetTracingController();
static Agent* GetAgent();

0 comments on commit 2839298

Please sign in to comment.
You can’t perform that action at this time.