Title: [182082] trunk/Source/WebKit2
Revision
182082
Author
[email protected]
Date
2015-03-27 14:38:43 -0700 (Fri, 27 Mar 2015)

Log Message

Use the correct timebase to log scrollperf blank pixel counts on iOS
https://bugs.webkit.org/show_bug.cgi?id=143149

Reviewed by Tim Horton.

MobileSafari and WebKit need to collect scrollperf data using the same timebase;
MobileSafari can't call WTF::monotonicallyIncreasingTime(), so use CFAbsoluteTimeGetCurrent()
everywhere.

* UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm:
(WebKit::RemoteLayerTreeScrollingPerformanceData::appendBlankPixelCount):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (182081 => 182082)


--- trunk/Source/WebKit2/ChangeLog	2015-03-27 21:32:38 UTC (rev 182081)
+++ trunk/Source/WebKit2/ChangeLog	2015-03-27 21:38:43 UTC (rev 182082)
@@ -1,3 +1,17 @@
+2015-03-27  Simon Fraser  <[email protected]>
+
+        Use the correct timebase to log scrollperf blank pixel counts on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=143149
+
+        Reviewed by Tim Horton.
+        
+        MobileSafari and WebKit need to collect scrollperf data using the same timebase;
+        MobileSafari can't call WTF::monotonicallyIncreasingTime(), so use CFAbsoluteTimeGetCurrent()
+        everywhere.
+
+        * UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm:
+        (WebKit::RemoteLayerTreeScrollingPerformanceData::appendBlankPixelCount):
+
 2015-03-27  Chris Dumez  <[email protected]>
 
         [WK2][NetworkCache] Rename requestNeedsRevalidation() to requestRequiresRevalidation()

Modified: trunk/Source/WebKit2/UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm (182081 => 182082)


--- trunk/Source/WebKit2/UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm	2015-03-27 21:32:38 UTC (rev 182081)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/RemoteLayerTreeScrollingPerformanceData.mm	2015-03-27 21:38:43 UTC (rev 182082)
@@ -63,8 +63,7 @@
 
 void RemoteLayerTreeScrollingPerformanceData::appendBlankPixelCount(BlankPixelCount::EventType eventType, unsigned blankPixelCount)
 {
-    double now = WTF::monotonicallyIncreasingTime();
-
+    double now = CFAbsoluteTimeGetCurrent();
     if (!m_blankPixelCounts.isEmpty() && m_blankPixelCounts.last().canCoalesce(eventType, blankPixelCount)) {
         m_blankPixelCounts.last().endTime = now;
         return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to