summaryrefslogtreecommitdiff
path: root/src/inspector_agent.h
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@google.com>2018-04-27 17:20:37 -0700
committerEugene Ostroukhov <eostroukhov@google.com>2018-05-17 13:14:26 -0700
commit47bdc716f83462b6ab938315d11de6c92be082ac (patch)
tree8bdfd8c487cdcfb4e5b573b24d7809d053c675a6 /src/inspector_agent.h
parent5248401174ff1ec02f5e1a247a97594341bbfd89 (diff)
downloadandroid-node-v8-47bdc716f83462b6ab938315d11de6c92be082ac.tar.gz
android-node-v8-47bdc716f83462b6ab938315d11de6c92be082ac.tar.bz2
android-node-v8-47bdc716f83462b6ab938315d11de6c92be082ac.zip
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 <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r--src/inspector_agent.h9
1 files changed, 5 insertions, 4 deletions
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<v8::Function>& fn);
+ const node::Persistent<v8::Function>& fn);
node::Environment* parent_env_;
std::shared_ptr<NodeInspectorClient> client_;
@@ -113,8 +114,8 @@ class Agent {
bool pending_enable_async_hook_;
bool pending_disable_async_hook_;
- Persistent<v8::Function> enable_async_hook_function_;
- Persistent<v8::Function> disable_async_hook_function_;
+ node::Persistent<v8::Function> enable_async_hook_function_;
+ node::Persistent<v8::Function> disable_async_hook_function_;
};
} // namespace inspector