diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2018-10-11 16:33:25 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-13 00:12:31 +0300 |
commit | f5986a464316e2c7c2a21f5a5e9ffa7e527fd9d4 (patch) | |
tree | 469a2299ba6eb95cf2a27d9dcce886da09479f37 /src/node_platform.h | |
parent | b4e979ff84bbd366218ddba73ce7f275415b3569 (diff) |
src: trace_event: secondary storage for metadata
Metadata trace-events should be held in secondary storage so that they
can be periodically reemitted. This change establishes the secondary
storage and ensures that events are reemitted on each flush.
PR-URL: https://github.com/nodejs/node/pull/20900
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_platform.h')
-rw-r--r-- | src/node_platform.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/node_platform.h b/src/node_platform.h index c926c178528..441322a325b 100644 --- a/src/node_platform.h +++ b/src/node_platform.h @@ -11,6 +11,7 @@ #include "libplatform/libplatform.h" #include "node.h" #include "node_mutex.h" +#include "tracing/agent.h" #include "uv.h" namespace node { @@ -124,7 +125,8 @@ class WorkerThreadsTaskRunner { class NodePlatform : public MultiIsolatePlatform { public: - NodePlatform(int thread_pool_size, v8::TracingController* tracing_controller); + NodePlatform(int thread_pool_size, + node::tracing::TracingController* tracing_controller); virtual ~NodePlatform() {} void DrainTasks(v8::Isolate* isolate) override; @@ -142,7 +144,7 @@ class NodePlatform : public MultiIsolatePlatform { bool IdleTasksEnabled(v8::Isolate* isolate) override; double MonotonicallyIncreasingTime() override; double CurrentClockTimeMillis() override; - v8::TracingController* GetTracingController() override; + node::tracing::TracingController* GetTracingController() override; bool FlushForegroundTasks(v8::Isolate* isolate) override; void RegisterIsolate(v8::Isolate* isolate, uv_loop_t* loop) override; @@ -158,7 +160,7 @@ class NodePlatform : public MultiIsolatePlatform { std::unordered_map<v8::Isolate*, std::shared_ptr<PerIsolatePlatformData>> per_isolate_; - v8::TracingController* tracing_controller_; + node::tracing::TracingController* tracing_controller_; std::shared_ptr<WorkerThreadsTaskRunner> worker_thread_task_runner_; }; |