diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2018-10-11 06:33:25 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-12 14:12:31 -0700 |
commit | f5986a464316e2c7c2a21f5a5e9ffa7e527fd9d4 (patch) | |
tree | 469a2299ba6eb95cf2a27d9dcce886da09479f37 /test/cctest | |
parent | b4e979ff84bbd366218ddba73ce7f275415b3569 (diff) | |
download | android-node-v8-f5986a464316e2c7c2a21f5a5e9ffa7e527fd9d4.tar.gz android-node-v8-f5986a464316e2c7c2a21f5a5e9ffa7e527fd9d4.tar.bz2 android-node-v8-f5986a464316e2c7c2a21f5a5e9ffa7e527fd9d4.zip |
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 'test/cctest')
-rw-r--r-- | test/cctest/node_test_fixture.cc | 2 | ||||
-rw-r--r-- | test/cctest/node_test_fixture.h | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/test/cctest/node_test_fixture.cc b/test/cctest/node_test_fixture.cc index acc975a4cb..f134818247 100644 --- a/test/cctest/node_test_fixture.cc +++ b/test/cctest/node_test_fixture.cc @@ -3,4 +3,4 @@ ArrayBufferUniquePtr NodeTestFixture::allocator{nullptr, nullptr}; uv_loop_t NodeTestFixture::current_loop; NodePlatformUniquePtr NodeTestFixture::platform; -TracingControllerUniquePtr NodeTestFixture::tracing_controller; +TracingAgentUniquePtr NodeTestFixture::tracing_agent; diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index 775a211f54..f4c97b0502 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -55,21 +55,20 @@ struct Argv { using ArrayBufferUniquePtr = std::unique_ptr<node::ArrayBufferAllocator, decltype(&node::FreeArrayBufferAllocator)>; -using TracingControllerUniquePtr = std::unique_ptr<v8::TracingController>; +using TracingAgentUniquePtr = std::unique_ptr<node::tracing::Agent>; using NodePlatformUniquePtr = std::unique_ptr<node::NodePlatform>; class NodeTestFixture : public ::testing::Test { protected: static ArrayBufferUniquePtr allocator; - static TracingControllerUniquePtr tracing_controller; + static TracingAgentUniquePtr tracing_agent; static NodePlatformUniquePtr platform; static uv_loop_t current_loop; v8::Isolate* isolate_; static void SetUpTestCase() { - tracing_controller.reset(new v8::TracingController()); - node::tracing::TraceEventHelper::SetTracingController( - tracing_controller.get()); + tracing_agent.reset(new node::tracing::Agent()); + node::tracing::TraceEventHelper::SetAgent(tracing_agent.get()); CHECK_EQ(0, uv_loop_init(¤t_loop)); platform.reset(static_cast<node::NodePlatform*>( node::InitializeV8Platform(4))); |