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

Issue 11293121: Add latency measurement system (Closed)

Created:
8 years, 1 month ago by jbauman
Modified:
7 years, 8 months ago
Reviewers:
jamesr, nduca
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium, Ian Vollick, ajuma, brianderson
Visibility:
Public.

Description

Add latency measurement system This adds a new WebKit::WebLatencyInfoImpl struct, and sends it from the renderer, through the compositor, GPU process, and possibly aura, and then back to the renderer with the swap timestamp after the swap has occurred. We use sequence numbers in the struct to determine what input events caused a specific swap to happen. BUG=155367

Patch Set 1 #

Patch Set 2 : add back-path #

Patch Set 3 : many changes #

Patch Set 4 : minor input event changes #

Total comments: 2

Patch Set 5 : create cc::LatencyInfo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -83 lines) Patch
M ash/wm/window_animations.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/input_handler.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A cc/latency_info.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
M cc/layer_tree_host.h View 1 2 3 4 4 chunks +6 lines, -0 lines 0 comments Download
M cc/layer_tree_host.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M cc/layer_tree_host_client.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 3 4 5 chunks +8 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 4 chunks +25 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 32 chunks +45 lines, -44 lines 0 comments Download
M cc/layer_tree_host_unittest_scroll.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output_surface.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/output_surface_client.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/single_thread_proxy.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/single_thread_proxy.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M cc/thread_proxy.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/image_transport_factory.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 4 chunks +16 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 10 chunks +54 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 4 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 3 chunks +38 lines, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 2 3 4 5 chunks +10 lines, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 chunks +11 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 3 chunks +19 lines, -1 line 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 chunks +14 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface.h View 1 2 3 4 6 chunks +11 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 3 4 9 chunks +49 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_win.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/gpu/texture_image_transport_surface.cc View 1 2 3 4 4 chunks +22 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 4 chunks +19 lines, -1 line 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 2 3 4 5 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 4 chunks +22 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_thread.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/compositor_thread.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/gpu/input_event_filter.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/gpu/input_event_filter.cc View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/gpu/input_event_filter_unittest.cc View 1 2 3 3 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/idle_user_detector.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/idle_user_detector.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 chunks +16 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 15 chunks +56 lines, -3 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M ui/compositor/compositor_observer.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/compositor_bindings.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A webkit/compositor_bindings/web_latency_info_impl.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jbauman
The render_widget_host, render_widget, and impl thread each have separate numbers that are sent to the ...
8 years, 1 month ago (2012-11-06 19:08:33 UTC) #1
jbauman
Ok, I added support for aura (based somewhat on ajuma's patch), added a mechanism for ...
8 years, 1 month ago (2012-11-19 21:00:46 UTC) #2
jamesr
Are you worried about overflow on the input numbering? I think a safe upper bound ...
8 years, 1 month ago (2012-11-19 21:39:27 UTC) #3
jbauman
On 2012/11/19 21:39:27, jamesr wrote: > Are you worried about overflow on the input numbering? ...
8 years, 1 month ago (2012-11-19 21:45:28 UTC) #4
jbauman
8 years ago (2012-11-28 02:34:12 UTC) #5
jbauman
Ok, this is probably ready for review now.
8 years ago (2012-12-12 22:34:35 UTC) #6
jamesr
I think this needs some deps massaging to get into a landable state. Is there ...
7 years, 11 months ago (2013-01-02 23:23:39 UTC) #7
jbauman
On 2013/01/02 23:23:39, jamesr wrote: > I think this needs some deps massaging to get ...
7 years, 11 months ago (2013-01-03 01:30:39 UTC) #8
jbauman
Thanks for the review. I've uploaded a new version which hopefully addresses those issues.
7 years, 11 months ago (2013-01-03 03:57:25 UTC) #9
nduca
I think a design doc would help for this. @jbauman, can you and ali do ...
7 years, 11 months ago (2013-01-03 20:17:11 UTC) #10
nduca
7 years, 9 months ago (2013-03-13 05:10:53 UTC) #11
@jbauman, with impl side craziness settling down, how can I help unblock this? I
know we stalled out largely because I stalled the review... :$

Powered by Google App Engine
This is Rietveld 408576698