summaryrefslogtreecommitdiff
path: root/src/tracing/trace_event.cc
diff options
context:
space:
mode:
authorMatt Loring <mattloring@google.com>2017-06-29 10:55:38 +0200
committerAnna Henningsen <anna@addaleax.net>2017-08-17 20:26:49 +0200
commit5e5a52fc937d53b5bcf5c2c09c898d8311db2bca (patch)
tree9af454a4b67af717e84dfa57dab11db76cd1acd9 /src/tracing/trace_event.cc
parentfabe1b4e19011b94b20572a40300161b1160f8fd (diff)
downloadandroid-node-v8-5e5a52fc937d53b5bcf5c2c09c898d8311db2bca.tar.gz
android-node-v8-5e5a52fc937d53b5bcf5c2c09c898d8311db2bca.tar.bz2
android-node-v8-5e5a52fc937d53b5bcf5c2c09c898d8311db2bca.zip
tracing: Update to use new Platform tracing apis
V8 modified the platform API to accept a tracing controller at platform creation time that is required to be present for the lifetime of the platform if tracing will every be enabled. This will simplify the implementation of a v8::Platform subclass for node. PR-URL: https://github.com/nodejs/node/pull/14001 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/tracing/trace_event.cc')
-rw-r--r--src/tracing/trace_event.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tracing/trace_event.cc b/src/tracing/trace_event.cc
index b83cae6e05..856b344e9d 100644
--- a/src/tracing/trace_event.cc
+++ b/src/tracing/trace_event.cc
@@ -3,14 +3,14 @@
namespace node {
namespace tracing {
-v8::Platform* platform_ = nullptr;
+v8::TracingController* controller_ = nullptr;
-void TraceEventHelper::SetCurrentPlatform(v8::Platform* platform) {
- platform_ = platform;
+void TraceEventHelper::SetTracingController(v8::TracingController* controller) {
+ controller_ = controller;
}
-v8::Platform* TraceEventHelper::GetCurrentPlatform() {
- return platform_;
+v8::TracingController* TraceEventHelper::GetTracingController() {
+ return controller_;
}
} // namespace tracing