Record size of scroller that user scrolls

Desktop / Chromium - yigu [chromium.org] - 21 April 2017 08:24 EDT

This patch adds 2 UMA metrics that monitors the sizes of scrollers that user scrolls. One metric is for wheel scroll and the other is for touch scroll. Given that the purpose of this experiment is focused on small scrollers, we don't care about any scroller that is larger than 200000 squared px.

BUG=684631 TEST= EventHandlerTest.ScrollerSizeOfMainThreadScrollingHistogramRecordingTest; LayerTreeHostImplTest.ScrollerSizeOfCCScrollingHistogramRecordingTest; CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Review-Url: https://codereview.chromium.org/2773893003 Cr-Commit-Position: refs/heads/master@{#466315}

43525ec Record size of scroller that user scrolls
cc/input/scroller_size_metrics.h | 20 ++++
cc/trees/layer_tree_host_impl.cc | 17 +++
cc/trees/layer_tree_host_impl_unittest.cc | 61 ++++++++++
.../WebKit/Source/core/input/EventHandlerTest.cpp | 127 ++++++++++++++-------
.../WebKit/Source/core/input/ScrollManager.cpp | 89 ++++++++++-----
.../WebKit/Source/core/input/ScrollManager.h | 7 +-
.../Source/platform/scroll/ScrollerSizeMetrics.h | 15 +++
tools/metrics/histograms/histograms.xml | 20 ++++
8 files changed, 283 insertions(+), 73 deletions(-)

Upstream: git.chromium.org


  • Share