Index: third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp |
index 169573b23ba0e6a181463bdba003e16f38d1f9e6..503b3d2b946bb0bfc431cef6cb12889cb59e203a 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp |
@@ -5,6 +5,7 @@ |
#include "platform/v8_inspector/V8ProfilerAgentImpl.h" |
#include "platform/v8_inspector/Atomics.h" |
+#include "platform/v8_inspector/V8Debugger.h" |
#include "platform/v8_inspector/V8InspectorImpl.h" |
#include "platform/v8_inspector/V8InspectorSessionImpl.h" |
#include "platform/v8_inspector/V8StackTraceImpl.h" |
@@ -121,9 +122,9 @@ std::unique_ptr<protocol::Profiler::CPUProfile> createCPUProfile(v8::Isolate* is |
std::unique_ptr<protocol::Debugger::Location> currentDebugLocation(V8InspectorImpl* inspector) |
{ |
- std::unique_ptr<V8StackTrace> callStack = inspector->captureStackTrace(1); |
+ std::unique_ptr<V8StackTraceImpl> callStack = inspector->debugger()->captureStackTrace(false /* fullStack */); |
std::unique_ptr<protocol::Debugger::Location> location = protocol::Debugger::Location::create() |
- .setScriptId(callStack->topScriptId()) |
+ .setScriptId(toString16(callStack->topScriptId())) |
.setLineNumber(callStack->topLineNumber()).build(); |
location->setColumnNumber(callStack->topColumnNumber()); |
return location; |