| 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 4e8d77976515f71463bbb162e8f2d9bf740b64f4..10c40705ad24bbb27b94a6093add445a64e5b80a 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp
|
| @@ -58,7 +58,7 @@ std::unique_ptr<protocol::Profiler::CPUProfileNode> buildInspectorObjectFor(v8::
|
|
|
| std::unique_ptr<protocol::Profiler::CPUProfileNode> result = protocol::Profiler::CPUProfileNode::create()
|
| .setFunctionName(toProtocolString(node->GetFunctionName()))
|
| - .setScriptId(String16::number(node->GetScriptId()))
|
| + .setScriptId(String16::fromInteger(node->GetScriptId()))
|
| .setUrl(toProtocolString(node->GetScriptResourceName()))
|
| .setLineNumber(node->GetLineNumber())
|
| .setColumnNumber(node->GetColumnNumber())
|
| @@ -205,7 +205,7 @@ void V8ProfilerAgentImpl::setSamplingInterval(ErrorString* error, int interval)
|
| *error = "Cannot change sampling interval when profiling.";
|
| return;
|
| }
|
| - m_state->setNumber(ProfilerAgentState::samplingInterval, interval);
|
| + m_state->setInteger(ProfilerAgentState::samplingInterval, interval);
|
| m_isolate->GetCpuProfiler()->SetSamplingInterval(interval);
|
| }
|
|
|
| @@ -216,7 +216,7 @@ void V8ProfilerAgentImpl::restore()
|
| return;
|
| m_enabled = true;
|
| int interval = 0;
|
| - m_state->getNumber(ProfilerAgentState::samplingInterval, &interval);
|
| + m_state->getInteger(ProfilerAgentState::samplingInterval, &interval);
|
| if (interval)
|
| m_isolate->GetCpuProfiler()->SetSamplingInterval(interval);
|
| if (m_state->booleanProperty(ProfilerAgentState::userInitiatedProfiling, false)) {
|
| @@ -261,7 +261,7 @@ void V8ProfilerAgentImpl::stop(ErrorString* errorString, std::unique_ptr<protoco
|
|
|
| String16 V8ProfilerAgentImpl::nextProfileId()
|
| {
|
| - return String16::number(atomicIncrement(&s_lastProfileId));
|
| + return String16::fromInteger(atomicIncrement(&s_lastProfileId));
|
| }
|
|
|
| void V8ProfilerAgentImpl::startProfiling(const String16& title)
|
|
|