Web Inspector: Show rendering frames (and FPS) in Layout and Rendering timeline
[WebKit-https.git] / Source / WebCore / inspector / InspectorTimelineAgent.h
index 45af63599f8ce7d35f71911da891627d0cf9ec7a..a0e7c7b39c1c90363473e9061359d5bf77cdac9b 100644 (file)
@@ -61,6 +61,7 @@ class PageScriptDebugServer;
 class RenderObject;
 class ResourceRequest;
 class ResourceResponse;
+class RunLoopObserver;
 
 typedef String ErrorString;
 
@@ -71,6 +72,7 @@ enum class TimelineRecordType {
     InvalidateLayout,
     Layout,
     Paint,
+    RunLoop,
     ScrollLayer,
 
     ParseHTML,
@@ -244,6 +246,12 @@ private:
 
     bool m_enabled;
     bool m_enabledFromFrontend;
+
+#if PLATFORM(COCOA)
+    std::unique_ptr<WebCore::RunLoopObserver> m_frameStartObserver;
+    std::unique_ptr<WebCore::RunLoopObserver> m_frameStopObserver;
+#endif
+    bool m_didStartRecordingRunLoop;
 };
 
 } // namespace WebCore