| Index: src/inspector/v8-stack-trace-impl.cc
|
| diff --git a/src/inspector/v8-stack-trace-impl.cc b/src/inspector/v8-stack-trace-impl.cc
|
| index 1a38c6dd82a002b11db462beb6c6ef07e5f9f61f..340024fbf525e8e8c6f9fe6b291193e54cd1082d 100644
|
| --- a/src/inspector/v8-stack-trace-impl.cc
|
| +++ b/src/inspector/v8-stack-trace-impl.cc
|
| @@ -7,10 +7,8 @@
|
| #include "src/inspector/string-util.h"
|
| #include "src/inspector/v8-debugger.h"
|
| #include "src/inspector/v8-inspector-impl.h"
|
| -#include "src/inspector/v8-profiler-agent-impl.h"
|
|
|
| #include "include/v8-debug.h"
|
| -#include "include/v8-profiler.h"
|
| #include "include/v8-version.h"
|
|
|
| namespace v8_inspector {
|
| @@ -161,12 +159,6 @@ std::unique_ptr<V8StackTraceImpl> V8StackTraceImpl::capture(
|
| v8::HandleScope handleScope(isolate);
|
| v8::Local<v8::StackTrace> stackTrace;
|
| if (isolate->InContext()) {
|
| - if (debugger) {
|
| - V8InspectorImpl* inspector = debugger->inspector();
|
| - V8ProfilerAgentImpl* profilerAgent =
|
| - inspector->enabledProfilerAgentForGroup(contextGroupId);
|
| - if (profilerAgent) profilerAgent->collectSample();
|
| - }
|
| stackTrace = v8::StackTrace::CurrentStackTrace(
|
| isolate, static_cast<int>(maxStackSize), stackTraceOptions);
|
| }
|
|
|