Web Inspector: Timelines: can't reliably stop/start a recording
[WebKit-https.git] / Source / JavaScriptCore / inspector / JSGlobalObjectConsoleClient.cpp
index d1bd391..0cd9227 100644 (file)
@@ -121,10 +121,6 @@ void JSGlobalObjectConsoleClient::startConsoleProfile()
 {
     ErrorString unused;
 
-    // FIXME: <https://webkit.org/b/158753> Generalize the concept of Instruments on the backend to work equally for JSContext and Web inspection
-    if (m_scriptProfilerAgent)
-        m_scriptProfilerAgent->programmaticCaptureStarted();
-
     if (m_debuggerAgent) {
         m_profileRestoreBreakpointActiveValue = m_debuggerAgent->breakpointsActive();
         m_debuggerAgent->setBreakpointsActive(unused, false);
@@ -145,10 +141,6 @@ void JSGlobalObjectConsoleClient::stopConsoleProfile()
 
     if (m_debuggerAgent)
         m_debuggerAgent->setBreakpointsActive(unused, m_profileRestoreBreakpointActiveValue);
-
-    // FIXME: <https://webkit.org/b/158753> Generalize the concept of Instruments on the backend to work equally for JSContext and Web inspection
-    if (m_scriptProfilerAgent)
-        m_scriptProfilerAgent->programmaticCaptureStopped();
 }
 
 void JSGlobalObjectConsoleClient::takeHeapSnapshot(JSC::ExecState*, const String& title)