From 47bdc716f83462b6ab938315d11de6c92be082ac Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Fri, 27 Apr 2018 17:20:37 -0700 Subject: inspector: add a "NodeTracing" domain support This change adds a new inspector domain for receiving Node tracing data. 1. Node.js now can extend Inspector protocol with new domains with the API defined in the src/inspector/node_protocol.pdl. 2. Plumbing code will be generated at the build time. /json/protocol HTTP endpoint returns both V8 and Node.js inspector protocol. 3. "NodeTracing" domain was introduced. It is based on the Chrome "Tracing" domain. PR-URL: https://github.com/nodejs/node/pull/20608 Reviewed-By: James M Snell Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Matteo Collina --- src/inspector_agent.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/inspector_agent.h') diff --git a/src/inspector_agent.h b/src/inspector_agent.h index 64e4202ee8..21cf4c9f12 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -10,7 +10,7 @@ #endif #include "node_debug_options.h" -#include "node_platform.h" +#include "node_persistent.h" #include "v8.h" namespace v8_inspector { @@ -20,6 +20,7 @@ class StringView; namespace node { // Forward declaration to break recursive dependency chain with src/env.h. class Environment; +class NodePlatform; struct ContextInfo; namespace inspector { @@ -102,7 +103,7 @@ class Agent { private: void ToggleAsyncHook(v8::Isolate* isolate, - const Persistent& fn); + const node::Persistent& fn); node::Environment* parent_env_; std::shared_ptr client_; @@ -113,8 +114,8 @@ class Agent { bool pending_enable_async_hook_; bool pending_disable_async_hook_; - Persistent enable_async_hook_function_; - Persistent disable_async_hook_function_; + node::Persistent enable_async_hook_function_; + node::Persistent disable_async_hook_function_; }; } // namespace inspector -- cgit v1.2.3