Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp

Issue 2112593003: [DevTools] Remove [V8] from InspectorInstrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrated to inspector-protocol test Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698