chore: SetTracingController becomes SetAgent and corresponing contructions updated
This commit is contained in:
parent
f7f09b028b
commit
9c36576ddd
3 changed files with 5 additions and 5 deletions
|
@ -46,8 +46,9 @@ v8::Isolate* JavascriptEnvironment::Initialize(uv_loop_t* event_loop) {
|
||||||
|
|
||||||
// The V8Platform of gin relies on Chromium's task schedule, which has not
|
// The V8Platform of gin relies on Chromium's task schedule, which has not
|
||||||
// been started at this point, so we have to rely on Node's V8Platform.
|
// been started at this point, so we have to rely on Node's V8Platform.
|
||||||
auto* tracing_controller = new v8::TracingController();
|
auto* tracing_agent = node::CreateAgent();
|
||||||
node::tracing::TraceEventHelper::SetTracingController(tracing_controller);
|
auto* tracing_controller = tracing_agent->GetTracingController();
|
||||||
|
node::tracing::TraceEventHelper::SetAgent(tracing_agent);
|
||||||
platform_ = node::CreatePlatform(
|
platform_ = node::CreatePlatform(
|
||||||
base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.1, 0),
|
base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.1, 0),
|
||||||
tracing_controller);
|
tracing_controller);
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace tracing {
|
||||||
class TraceEventHelper {
|
class TraceEventHelper {
|
||||||
public:
|
public:
|
||||||
static v8::TracingController* GetTracingController();
|
static v8::TracingController* GetTracingController();
|
||||||
static void SetTracingController(v8::TracingController* controller);
|
static void SetAgent(node::tracing::Agent* agent);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace tracing
|
} // namespace tracing
|
||||||
|
|
|
@ -108,8 +108,7 @@ void AtomRendererClient::DidCreateScriptContext(
|
||||||
|
|
||||||
// Setup node tracing controller.
|
// Setup node tracing controller.
|
||||||
if (!node::tracing::TraceEventHelper::GetTracingController())
|
if (!node::tracing::TraceEventHelper::GetTracingController())
|
||||||
node::tracing::TraceEventHelper::SetTracingController(
|
node::tracing::TraceEventHelper::SetAgent(node::CreateAgent());
|
||||||
new v8::TracingController());
|
|
||||||
|
|
||||||
// Setup node environment for each window.
|
// Setup node environment for each window.
|
||||||
node::Environment* env = node_bindings_->CreateEnvironment(context);
|
node::Environment* env = node_bindings_->CreateEnvironment(context);
|
||||||
|
|
Loading…
Reference in a new issue