Commit 48567a53 authored by Alexei Filippov's avatar Alexei Filippov Committed by Commit Bot

DevTools: Use new static CpuProfiler::CollectSample API.

It allows collect the sample in all the running CPU profilers.

BUG=721099

Change-Id: I8c80c9543bb826b67b8f7ddf6b2984cb54d61fbb
Reviewed-on: https://chromium-review.googlesource.com/764793Reviewed-by: default avatarAndrey Kosyakov <caseq@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#515746}
parent aea48f28
......@@ -88,7 +88,7 @@ void SetCallStack(TracedValue* value) {
// So we collect the top frame with SourceLocation::capture() to get the
// binding call site info.
SourceLocation::Capture()->ToTracedValue(value, "stackTrace");
v8::Isolate::GetCurrent()->GetCpuProfiler()->CollectSample();
v8::CpuProfiler::CollectSample(v8::Isolate::GetCurrent());
}
void InspectorTraceEvents::Init(CoreProbeSink* instrumenting_agents,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment