Index: src/inspector/v8-inspector-impl.cc |
diff --git a/src/inspector/v8-inspector-impl.cc b/src/inspector/v8-inspector-impl.cc |
index 3e12c861d3af6bb51d4a0a4bd2dd92baa38a81b8..517aec683b8eaeea76d7079890c682e9bf1c0ba1 100644 |
--- a/src/inspector/v8-inspector-impl.cc |
+++ b/src/inspector/v8-inspector-impl.cc |
@@ -229,17 +229,9 @@ void V8InspectorImpl::resetContextGroup(int contextGroupId) { |
m_debugger->wasmTranslation()->Clear(); |
} |
-void V8InspectorImpl::idleStarted() { |
- for (auto it = m_sessions.begin(); it != m_sessions.end(); ++it) { |
- if (it->second->profilerAgent()->idleStarted()) return; |
- } |
-} |
+void V8InspectorImpl::idleStarted() { v8::debug::SetIdle(m_isolate, true); } |
-void V8InspectorImpl::idleFinished() { |
- for (auto it = m_sessions.begin(); it != m_sessions.end(); ++it) { |
- if (it->second->profilerAgent()->idleFinished()) return; |
- } |
-} |
+void V8InspectorImpl::idleFinished() { v8::debug::SetIdle(m_isolate, false); } |
unsigned V8InspectorImpl::exceptionThrown( |
v8::Local<v8::Context> context, const StringView& message, |