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

Issue 2914023002: Remove LatencyInfo::sequence_number. (May break metrics).

Created:
3 years, 6 months ago by tdresser
Modified:
3 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, yusukes+watch_chromium.org, Aaron Boodman, shuchen+watch_chromium.org, viettrungluu+watch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, abarth-chromium, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, darin (slow to review), kalyank, cc-bugs_chromium.org, James Su, danakj+watch_chromium.org, qsr+mojo_chromium.org, dtapuska
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove LatencyInfo::sequence_number. (May break metrics). sequence_number appears to be entirely useless. It seems plausible that it's being used downstream somehow in some telemetry tests or something, but I ran a few telemetry tests and things seemed fine. I think we might as well land this and keep an eye on it. If it breaks stuff, revert it! BUG=731202 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Patch Set 2 : Fix tests. #

Patch Set 3 : Fix some tests. #

Patch Set 4 : Fix screenshots, tweak mac. #

Patch Set 5 : Fix Android #

Patch Set 6 : Fix Windows. #

Total comments: 8

Patch Set 7 : Rebase on change splitting off trace_id. #

Patch Set 8 : Remove outdated test #

Patch Set 9 : Rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -225 lines) Patch
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M cc/output/latency_info_swap_promise.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_synchronization_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +6 lines, -15 lines 0 comments Download
M cc/trees/latency_info_swap_promise_monitor.cc View 1 2 3 4 5 6 3 chunks +3 lines, -19 lines 2 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/legacy_input_router_impl_perftest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/render_widget_host_latency_tracker.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/render_widget_host_latency_tracker.cc View 1 2 3 4 5 6 7 8 6 chunks +6 lines, -11 lines 0 comments Download
M content/browser/renderer_host/input/render_widget_host_latency_tracker_unittest.cc View 1 2 3 4 5 6 7 8 20 chunks +43 lines, -43 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -6 lines 1 comment Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M content/common/input/event_with_latency_info_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/input/input_param_traits_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M gpu/ipc/service/image_transport_surface_overlay_mac.mm View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/ipc/service/pass_through_image_transport_surface.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/event.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M ui/latency/ipc/latency_info_param_traits_macros.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/latency/ipc/latency_info_param_traits_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M ui/latency/latency_info.h View 1 2 3 4 5 6 7 8 5 chunks +3 lines, -13 lines 0 comments Download
M ui/latency/latency_info.cc View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -20 lines 0 comments Download
M ui/latency/latency_info_unittest.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -13 lines 0 comments Download
M ui/latency/mojo/latency_info.mojom View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M ui/latency/mojo/latency_info_struct_traits.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M ui/latency/mojo/latency_info_struct_traits.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -8 lines 0 comments Download
M ui/latency/mojo/struct_traits_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -7 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 59 (43 generated)
tdresser
sequence_number appears to be entirely useless. It seems plausible that it's being used downstream somehow ...
3 years, 6 months ago (2017-06-08 18:36:44 UTC) #28
dtapuska
https://codereview.chromium.org/2914023002/diff/100001/ui/latency/latency_info.cc File ui/latency/latency_info.cc (right): https://codereview.chromium.org/2914023002/diff/100001/ui/latency/latency_info.cc#newcode217 ui/latency/latency_info.cc:217: static int global_trace_id = 0; On 2017/06/08 18:36:44, tdresser ...
3 years, 6 months ago (2017-06-09 15:15:36 UTC) #31
dtapuska
I think this is still open pending feedback from tdresser@ the static is kind of ...
3 years, 5 months ago (2017-06-26 20:51:44 UTC) #32
tdresser
On 2017/06/26 20:51:44, dtapuska wrote: > I think this is still open pending feedback from ...
3 years, 5 months ago (2017-06-26 20:53:37 UTC) #33
tdresser
dtapuska@ is OOO. ccameron@, could you give this a general review, and then I'll fill ...
3 years, 5 months ago (2017-06-29 19:04:09 UTC) #45
tdresser
https://codereview.chromium.org/2914023002/diff/100001/ui/latency/latency_info.cc File ui/latency/latency_info.cc (right): https://codereview.chromium.org/2914023002/diff/100001/ui/latency/latency_info.cc#newcode217 ui/latency/latency_info.cc:217: static int global_trace_id = 0; On 2017/06/09 15:15:35, dtapuska ...
3 years, 5 months ago (2017-06-29 19:04:38 UTC) #46
tdresser
On 2017/06/29 19:04:38, tdresser wrote: > https://codereview.chromium.org/2914023002/diff/100001/ui/latency/latency_info.cc > File ui/latency/latency_info.cc (right): > > https://codereview.chromium.org/2914023002/diff/100001/ui/latency/latency_info.cc#newcode217 > ...
3 years, 5 months ago (2017-06-29 20:44:54 UTC) #49
ccameron
lgtm, it looks like most (99%ish) of these numbers weren't even being updated. https://codereview.chromium.org/2914023002/diff/160001/content/browser/renderer_host/render_widget_host_impl.cc File ...
3 years, 5 months ago (2017-06-29 20:52:18 UTC) #50
tdresser
Sorry Chris, I meant to highlight the non-trivial modifications. There's only one other - I've ...
3 years, 5 months ago (2017-06-29 21:00:37 UTC) #52
ccameron
Thanks for the second pointer. I think this still lgtm. You may want to verify ...
3 years, 5 months ago (2017-06-29 21:06:36 UTC) #53
ccameron
Thanks for the second pointer. I think this still lgtm. You may want to verify ...
3 years, 5 months ago (2017-06-29 21:06:36 UTC) #54
Ken Russell (switch to Gerrit)
not lgtm The sequence number is supposed to be placed into the LatencyInfo by the ...
3 years, 5 months ago (2017-06-29 21:17:58 UTC) #55
tdresser
On 2017/06/29 21:17:58, Ken Russell (switch to Gerrit) wrote: > not lgtm > > The ...
3 years, 5 months ago (2017-06-30 15:36:06 UTC) #56
Ken Russell (switch to Gerrit)
On 2017/06/30 15:36:06, tdresser (OOO until July 17) wrote: > On 2017/06/29 21:17:58, Ken Russell ...
3 years, 5 months ago (2017-07-07 22:30:15 UTC) #57
jbauman
On 2017/06/30 15:36:06, tdresser (OOO until July 17) wrote: > On 2017/06/29 21:17:58, Ken Russell ...
3 years, 5 months ago (2017-07-07 22:46:07 UTC) #58
tdresser
3 years, 5 months ago (2017-07-20 15:04:44 UTC) #59
Sorry for the delay, I was OOO.

> Why do we need to remove this? We'd essentially be adding a sequence_number_
to
> the LatencyInfo instead of to the specific component where it matters.

The problem is that it currently isn't added to the specific component where it
matters, it's added to EVERY component.
https://cs.chromium.org/chromium/src/ui/latency/latency_info.h?rcl=edd34538e6....

Well, the field is present in every component, the actual value is populated
inconsistently, and it's pretty unclear 
why it exists, and when it needs to be present.

We're trying to shrink the size of each component down to a single timestamp, as
part of a general cleanup of LatencyInfo.
Part of that is removing the sequence_number from being in every component.

If we were to add it to LatencyInfo, we'd also name it something specific to how
it's used, instead of something generic.

I'll set up a VC to talk this over. Thanks for your help here!

Powered by Google App Engine
This is Rietveld 408576698