Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Issue 2773893003: Record size of scroller that user scrolls (Closed)

Created:
3 years, 9 months ago by yigu
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, cc-bugs_chromium.org, chromium-reviews, dtapuska+blinkwatch_chromium.org, Navid Zolghadr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Record size of scroller that user scrolls 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} Committed: https://chromium.googlesource.com/chromium/src/+/43525ec7a4ebf72cc88ad3edfad53b5be3c59b61

Patch Set 1 #

Patch Set 2 : Use scrollBegin gesture event to test UMA metrics #

Total comments: 2

Patch Set 3 : Redefine metrics using suffixes in histograms.xml #

Total comments: 14

Patch Set 4 : Address comments #

Patch Set 5 : bug fix #

Total comments: 5

Patch Set 6 : nit #

Total comments: 2

Patch Set 7 : Change constants location #

Patch Set 8 : nit #

Patch Set 9 : Move the constants to a separate header #

Patch Set 10 : Add scrollEnd event after scrollBegin in test #

Total comments: 13

Patch Set 11 : Logic update #

Total comments: 14

Patch Set 12 : Address comments && add unit tests #

Total comments: 13

Patch Set 13 : Rename forwarding headers && update recording condition checks #

Patch Set 14 : nit #

Total comments: 14

Patch Set 15 : Address comments #

Total comments: 1

Patch Set 16 : nit #

Total comments: 8

Patch Set 17 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -73 lines) Patch
A cc/input/scroller_size_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +20 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +61 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +87 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +58 lines, -31 lines 0 comments Download
A third_party/WebKit/Source/platform/scroll/ScrollerSizeMetrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (24 generated)
yigu
PTAL. Thanks!
3 years, 9 months ago (2017-03-27 16:29:36 UTC) #4
jwd
https://codereview.chromium.org/2773893003/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2773893003/diff/20001/tools/metrics/histograms/histograms.xml#newcode16613 tools/metrics/histograms/histograms.xml:16613: + composite them even we are able to do ...
3 years, 9 months ago (2017-03-27 17:28:34 UTC) #5
weiliangc
This metrics doesn't look at scrollers that never has scroll begin event. Why do we ...
3 years, 9 months ago (2017-03-27 17:45:46 UTC) #6
yigu
On 2017/03/27 17:45:46, weiliangc wrote: > This metrics doesn't look at scrollers that never has ...
3 years, 9 months ago (2017-03-27 17:49:53 UTC) #7
yigu
On 2017/03/27 17:45:46, weiliangc wrote: > This metrics doesn't look at scrollers that never has ...
3 years, 9 months ago (2017-03-27 17:49:53 UTC) #8
yigu
The histograms.xml has been updated with suffixes. PTAL. Thanks! https://codereview.chromium.org/2773893003/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2773893003/diff/20001/tools/metrics/histograms/histograms.xml#newcode16613 tools/metrics/histograms/histograms.xml:16613: ...
3 years, 9 months ago (2017-03-27 22:02:15 UTC) #11
tdresser
https://codereview.chromium.org/2773893003/diff/40001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2773893003/diff/40001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode487 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:487: "<div class='box'><div id='content' class='spacer'></div></div>"); I suspect this string could ...
3 years, 8 months ago (2017-03-28 13:30:12 UTC) #12
flackr
https://codereview.chromium.org/2773893003/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2773893003/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode2758 cc/trees/layer_tree_host_impl.cc:2758: scrolling_node->scroll_clip_layer_bounds.GetArea(), 1, 90000, 50); Use a pair of constants ...
3 years, 8 months ago (2017-03-28 14:40:23 UTC) #13
tdresser
On 2017/03/28 14:40:23, flackr wrote: > https://codereview.chromium.org/2773893003/diff/40001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/2773893003/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode2758 > ...
3 years, 8 months ago (2017-03-28 17:13:19 UTC) #14
yigu
Have updated the patch. PTAL. Thanks! https://codereview.chromium.org/2773893003/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2773893003/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode2758 cc/trees/layer_tree_host_impl.cc:2758: scrolling_node->scroll_clip_layer_bounds.GetArea(), 1, 90000, ...
3 years, 8 months ago (2017-03-29 15:32:04 UTC) #16
tdresser
https://codereview.chromium.org/2773893003/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2773893003/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode173 cc/trees/layer_tree_host_impl.cc:173: std::make_pair(200000, 50); Name this so it's clearer what this ...
3 years, 8 months ago (2017-03-30 14:41:35 UTC) #18
yigu
On 2017/03/30 14:41:35, tdresser wrote: > https://codereview.chromium.org/2773893003/diff/80001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/2773893003/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode173 > ...
3 years, 8 months ago (2017-03-30 15:06:46 UTC) #19
tdresser
LGTM https://codereview.chromium.org/2773893003/diff/100001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): https://codereview.chromium.org/2773893003/diff/100001/cc/trees/layer_tree_host_impl.h#newcode609 cc/trees/layer_tree_host_impl.h:609: static const int bucketNum = 50; Prefix with ...
3 years, 8 months ago (2017-03-30 15:19:06 UTC) #20
weiliangc
Please update your CL description to reflect the change in the scroller size. Also the ...
3 years, 8 months ago (2017-03-30 19:19:36 UTC) #21
yigu
On 2017/03/30 19:19:36, weiliangc wrote: > Please update your CL description to reflect the change ...
3 years, 8 months ago (2017-03-30 20:07:23 UTC) #23
jwd
metrics LGTM
3 years, 8 months ago (2017-03-30 20:29:56 UTC) #24
weiliangc
On 2017/03/30 at 20:07:23, yigu wrote: > On 2017/03/30 19:19:36, weiliangc wrote: > > Please ...
3 years, 8 months ago (2017-03-30 21:05:36 UTC) #25
yigu
On 2017/03/30 21:05:36, weiliangc wrote: > On 2017/03/30 at 20:07:23, yigu wrote: > > On ...
3 years, 8 months ago (2017-03-31 00:08:37 UTC) #26
weiliangc
Thanks, LGTM.
3 years, 8 months ago (2017-03-31 18:43:10 UTC) #27
bokan
https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode521 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:521: 200000, 1); Why is this in the 200,000+ bucket? ...
3 years, 8 months ago (2017-03-31 20:23:50 UTC) #29
bokan
https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/ScrollManager.cpp File third_party/WebKit/Source/core/input/ScrollManager.cpp (right): https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/ScrollManager.cpp#newcode588 third_party/WebKit/Source/core/input/ScrollManager.cpp:588: layoutObject.enclosingLayer()->visualRect().width().toInt() * On 2017/03/31 20:23:50, bokan wrote: > I ...
3 years, 8 months ago (2017-03-31 20:24:46 UTC) #30
yigu
https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode521 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:521: 200000, 1); On 2017/03/31 20:23:50, bokan wrote: > Why ...
3 years, 8 months ago (2017-03-31 20:38:32 UTC) #31
enne (OOO)
cc lgtm % other people's overall review
3 years, 8 months ago (2017-04-03 17:33:40 UTC) #32
bokan
https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2773893003/diff/180001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode521 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:521: 200000, 1); On 2017/03/31 20:38:32, yigu wrote: > On ...
3 years, 8 months ago (2017-04-04 15:25:45 UTC) #33
bokan
https://codereview.chromium.org/2773893003/diff/180001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2773893003/diff/180001/cc/trees/layer_tree_host_impl.cc#newcode2766 cc/trees/layer_tree_host_impl.cc:2766: if (!scroll_on_main_thread && scrolling_node) { if you're going to ...
3 years, 8 months ago (2017-04-04 17:32:57 UTC) #34
flackr
https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h File cc/input/scroller_size.h (right): https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h#newcode11 cc/input/scroller_size.h:11: static const int kMaxScrollerSize = 200000; // 400px * ...
3 years, 8 months ago (2017-04-12 15:31:04 UTC) #35
yigu
On 2017/04/12 15:31:04, flackr wrote: > https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h > File cc/input/scroller_size.h (right): > > https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h#newcode11 > ...
3 years, 8 months ago (2017-04-12 15:33:59 UTC) #36
yigu
I've updated the logic using the idea from the main thread scrolling reasons recording patch. ...
3 years, 8 months ago (2017-04-13 19:11:41 UTC) #37
bokan
https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h File cc/input/scroller_size.h (right): https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h#newcode11 cc/input/scroller_size.h:11: static const int kMaxScrollerSize = 200000; // 400px * ...
3 years, 8 months ago (2017-04-18 19:24:39 UTC) #39
flackr
https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h File cc/input/scroller_size.h (right): https://codereview.chromium.org/2773893003/diff/180001/cc/input/scroller_size.h#newcode11 cc/input/scroller_size.h:11: static const int kMaxScrollerSize = 200000; // 400px * ...
3 years, 8 months ago (2017-04-19 00:05:50 UTC) #40
yigu
Just updated some logic based on bokan@'s feedback. PTAL:) Add pdr@ for owner approval on ...
3 years, 8 months ago (2017-04-19 20:53:06 UTC) #43
pdr.
Overall looks good but I think we should make it clear that these new files ...
3 years, 8 months ago (2017-04-19 21:03:51 UTC) #44
yigu
https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h File cc/input/scroller_size.h (right): https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h#newcode11 cc/input/scroller_size.h:11: static constexpr int kMaxScrollerSize = 200000; // Approximately 400px ...
3 years, 8 months ago (2017-04-19 21:10:05 UTC) #45
pdr.
https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h File cc/input/scroller_size.h (right): https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h#newcode11 cc/input/scroller_size.h:11: static constexpr int kMaxScrollerSize = 200000; // Approximately 400px ...
3 years, 8 months ago (2017-04-19 21:13:47 UTC) #46
flackr
https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h File cc/input/scroller_size.h (right): https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h#newcode11 cc/input/scroller_size.h:11: static constexpr int kMaxScrollerSize = 200000; // Approximately 400px ...
3 years, 8 months ago (2017-04-20 07:15:01 UTC) #47
yigu
On 2017/04/20 07:15:01, flackr wrote: > https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h > File cc/input/scroller_size.h (right): > > https://codereview.chromium.org/2773893003/diff/220001/cc/input/scroller_size.h#newcode11 > ...
3 years, 8 months ago (2017-04-20 13:04:55 UTC) #48
bokan
https://codereview.chromium.org/2773893003/diff/220001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2773893003/diff/220001/cc/trees/layer_tree_host_impl.cc#newcode2773 cc/trees/layer_tree_host_impl.cc:2773: InnerViewportScrollLayer() && OuterViewportScrollLayer() && On 2017/04/20 07:15:01, flackr wrote: ...
3 years, 8 months ago (2017-04-20 14:34:06 UTC) #49
yigu
Hi. I've updated the header files and the logic of excluding main scroller recording. PTAL. ...
3 years, 8 months ago (2017-04-20 18:14:22 UTC) #50
pdr.
On 2017/04/20 at 18:14:22, yigu wrote: > Hi. I've updated the header files and the ...
3 years, 8 months ago (2017-04-20 18:17:43 UTC) #51
bokan
https://codereview.chromium.org/2773893003/diff/260001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2773893003/diff/260001/cc/trees/layer_tree_host_impl_unittest.cc#newcode759 cc/trees/layer_tree_host_impl_unittest.cc:759: SetupScrollAndContentsLayers(gfx::Size(800, 600)); Please use CreateBasicVirtualViewportLayers - it creates a ...
3 years, 8 months ago (2017-04-20 19:27:58 UTC) #52
bokan
https://codereview.chromium.org/2773893003/diff/260001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2773893003/diff/260001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode609 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:609: histogram_tester.ExpectTotalCount("Event.Scroll.ScrollerSize.OnScroll_Wheel", On 2017/04/20 19:27:58, bokan wrote: > Please also ...
3 years, 8 months ago (2017-04-20 20:07:31 UTC) #53
yigu
PTAL. Thanks! https://codereview.chromium.org/2773893003/diff/260001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2773893003/diff/260001/cc/trees/layer_tree_host_impl_unittest.cc#newcode759 cc/trees/layer_tree_host_impl_unittest.cc:759: SetupScrollAndContentsLayers(gfx::Size(800, 600)); On 2017/04/20 19:27:58, bokan wrote: ...
3 years, 8 months ago (2017-04-20 20:22:35 UTC) #54
bokan
thanks, lgtm https://codereview.chromium.org/2773893003/diff/280001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2773893003/diff/280001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode590 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:590: " .fixed { position: fixed; }" nit: ...
3 years, 8 months ago (2017-04-20 21:38:00 UTC) #55
flackr
LGTM with nits https://codereview.chromium.org/2773893003/diff/300001/cc/input/scroller_size_metrics.h File cc/input/scroller_size_metrics.h (right): https://codereview.chromium.org/2773893003/diff/300001/cc/input/scroller_size_metrics.h#newcode16 cc/input/scroller_size_metrics.h:16: 200000; // Approximately 400px * 500px, ...
3 years, 8 months ago (2017-04-21 00:56:36 UTC) #60
yigu
Thanks Rob. https://codereview.chromium.org/2773893003/diff/300001/cc/input/scroller_size_metrics.h File cc/input/scroller_size_metrics.h (right): https://codereview.chromium.org/2773893003/diff/300001/cc/input/scroller_size_metrics.h#newcode16 cc/input/scroller_size_metrics.h:16: 200000; // Approximately 400px * 500px, 250px ...
3 years, 8 months ago (2017-04-21 12:20:33 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2773893003/320001
3 years, 8 months ago (2017-04-21 12:20:55 UTC) #68
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 12:24:31 UTC) #71
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/43525ec7a4ebf72cc88ad3edfad5...

Powered by Google App Engine
This is Rietveld 408576698