diff options
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -36,6 +36,7 @@ #include "v8.h" #include "node.h" #include "node_http2_state.h" +#include "tracing/agent.h" #include <list> #include <stdint.h> @@ -553,7 +554,9 @@ class Environment { static uv_key_t thread_local_env; static inline Environment* GetThreadLocalEnv(); - Environment(IsolateData* isolate_data, v8::Local<v8::Context> context); + Environment(IsolateData* isolate_data, + v8::Local<v8::Context> context, + tracing::Agent* tracing_agent); ~Environment(); void Start(int argc, @@ -585,6 +588,7 @@ class Environment { void StopProfilerIdleNotifier(); inline v8::Isolate* isolate() const; + inline tracing::Agent* tracing_agent() const; inline uv_loop_t* event_loop() const; inline uint32_t watched_providers() const; @@ -780,6 +784,7 @@ class Environment { v8::Isolate* const isolate_; IsolateData* const isolate_data_; + tracing::Agent* const tracing_agent_; uv_check_t immediate_check_handle_; uv_idle_t immediate_idle_handle_; uv_prepare_t idle_prepare_handle_; |