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 b09f4f55ee24bf0025cfcd6e9ed3ff3a3b93b822..4e8d77976515f71463bbb162e8f2d9bf740b64f4 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp |
@@ -185,14 +185,12 @@ void V8ProfilerAgentImpl::enable(ErrorString*) |
return; |
m_enabled = true; |
m_state->setBoolean(ProfilerAgentState::profilerEnabled, true); |
- m_session->changeInstrumentationCounter(+1); |
} |
void V8ProfilerAgentImpl::disable(ErrorString* errorString) |
{ |
if (!m_enabled) |
return; |
- m_session->changeInstrumentationCounter(-1); |
for (size_t i = m_startedProfiles.size(); i > 0; --i) |
stopProfiling(m_startedProfiles[i - 1].m_id, false); |
m_startedProfiles.clear(); |
@@ -217,7 +215,6 @@ void V8ProfilerAgentImpl::restore() |
if (!m_state->booleanProperty(ProfilerAgentState::profilerEnabled, false)) |
return; |
m_enabled = true; |
- m_session->changeInstrumentationCounter(+1); |
int interval = 0; |
m_state->getNumber(ProfilerAgentState::samplingInterval, &interval); |
if (interval) |