| Index: include/libplatform/libplatform.h
|
| diff --git a/include/libplatform/libplatform.h b/include/libplatform/libplatform.h
|
| index f180b4fe82ef33ee4621c15c55c527ec7aad06db..5b5eee651319b5676d53650fe9c91eebc51c6f17 100644
|
| --- a/include/libplatform/libplatform.h
|
| +++ b/include/libplatform/libplatform.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef V8_LIBPLATFORM_LIBPLATFORM_H_
|
| #define V8_LIBPLATFORM_LIBPLATFORM_H_
|
|
|
| +#include "libplatform/v8-tracing.h"
|
| #include "v8-platform.h" // NOLINT(build/include)
|
|
|
| namespace v8 {
|
| @@ -31,6 +32,14 @@ v8::Platform* CreateDefaultPlatform(int thread_pool_size = 0);
|
| */
|
| bool PumpMessageLoop(v8::Platform* platform, v8::Isolate* isolate);
|
|
|
| +/**
|
| + * Attempts to set the tracing controller for the given platform.
|
| + *
|
| + * The |platform| has to be created using |CreateDefaultPlatform|.
|
| + */
|
| +void SetTracingController(
|
| + v8::Platform* platform,
|
| + v8::platform::tracing::TracingController* tracing_controller);
|
|
|
| } // namespace platform
|
| } // namespace v8
|
|
|