Index: src/libplatform/default-platform.h |
diff --git a/src/libplatform/default-platform.h b/src/libplatform/default-platform.h |
index ea39abc28bd4c3792ad9f1ff44d827689e8f06ff..0fd7e5ad890a3090ab794c9d5c734a6ea29f45f3 100644 |
--- a/src/libplatform/default-platform.h |
+++ b/src/libplatform/default-platform.h |
@@ -10,6 +10,7 @@ |
#include <queue> |
#include <vector> |
+#include "include/libplatform/v8-tracing.h" |
#include "include/v8-platform.h" |
#include "src/base/macros.h" |
#include "src/base/platform/mutex.h" |
@@ -22,6 +23,10 @@ class TaskQueue; |
class Thread; |
class WorkerThread; |
+namespace tracing { |
+class TracingController; |
+} |
+ |
class DefaultPlatform : public Platform { |
public: |
DefaultPlatform(); |
@@ -54,7 +59,7 @@ class DefaultPlatform : public Platform { |
unsigned int flags) override; |
void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, |
const char* name, uint64_t handle) override; |
- |
+ void SetTracingController(tracing::TracingController* tracing_controller); |
private: |
static const int kMaxThreadPoolSize; |
@@ -74,6 +79,7 @@ class DefaultPlatform : public Platform { |
std::priority_queue<DelayedEntry, std::vector<DelayedEntry>, |
std::greater<DelayedEntry> > > |
main_thread_delayed_queue_; |
+ tracing::TracingController* tracing_controller_; |
DISALLOW_COPY_AND_ASSIGN(DefaultPlatform); |
}; |