summaryrefslogtreecommitdiff
path: root/src/tracing/trace_event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracing/trace_event.cc')
-rw-r--r--src/tracing/trace_event.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tracing/trace_event.cc b/src/tracing/trace_event.cc
new file mode 100644
index 0000000000..b83cae6e05
--- /dev/null
+++ b/src/tracing/trace_event.cc
@@ -0,0 +1,17 @@
+#include "tracing/trace_event.h"
+
+namespace node {
+namespace tracing {
+
+v8::Platform* platform_ = nullptr;
+
+void TraceEventHelper::SetCurrentPlatform(v8::Platform* platform) {
+ platform_ = platform;
+}
+
+v8::Platform* TraceEventHelper::GetCurrentPlatform() {
+ return platform_;
+}
+
+} // namespace tracing
+} // namespace node