Web Inspector: Timeline: record root event for the function calls enforced by console...
[WebKit-https.git] / Source / WebCore / inspector / InspectorInstrumentation.cpp
index 7b97f6ce900d1585679c7c7f8b5e474e712a3a95..ecc57a2a97bf6b85acee206597343c255c8a5778 100644 (file)
@@ -224,12 +224,16 @@ void InspectorInstrumentation::didRemoveTimerImpl(InstrumentingAgents* instrumen
 
 InspectorInstrumentationCookie InspectorInstrumentation::willCallFunctionImpl(InstrumentingAgents* instrumentingAgents, const String& scriptName, int scriptLine)
 {
 
 InspectorInstrumentationCookie InspectorInstrumentation::willCallFunctionImpl(InstrumentingAgents* instrumentingAgents, const String& scriptName, int scriptLine)
 {
+#if USE(JSC) // It is disabled for JSC see WK-BUG 40119
+    return InspectorInstrumentationCookie();
+#else
     int timelineAgentId = 0;
     if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent()) {
         timelineAgent->willCallFunction(scriptName, scriptLine);
         timelineAgentId = timelineAgent->id();
     }
     return InspectorInstrumentationCookie(instrumentingAgents, timelineAgentId);
     int timelineAgentId = 0;
     if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent()) {
         timelineAgent->willCallFunction(scriptName, scriptLine);
         timelineAgentId = timelineAgent->id();
     }
     return InspectorInstrumentationCookie(instrumentingAgents, timelineAgentId);
+#endif
 }
 
 void InspectorInstrumentation::didCallFunctionImpl(const InspectorInstrumentationCookie& cookie)
 }
 
 void InspectorInstrumentation::didCallFunctionImpl(const InspectorInstrumentationCookie& cookie)