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

Issue 17757002: Add UMA/Telemetry stats for touch event latency (Closed)

Created:
7 years, 6 months ago by Yufeng Shen (Slow to review)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, jbauman, jdduke (slow), varunjain
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add UMA/Telemetry stats for touch event latency This CL adds following UMA stats for touch event latency 1. Event.Latency.Browser.TouchUI: touch event received by Chrome -> touch event sent to renderer 2. Event.Latency.Browser.TouchAcked touch event sent to renderer -> touch event acked from renderer Corresponding telemetry stats are also added. BUG=chromium:246034 TEST=1. Check UMA stats exist in chrome://histograms/Event.Latency.Browser 2. Check the relevant stats are in telemetry smoothness test. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209255

Patch Set 1 #

Total comments: 19

Patch Set 2 : address various issues #

Total comments: 7

Patch Set 3 : add LatencyInfo::FindLatency() && Only use one metric for touch ack latency #

Total comments: 6

Patch Set 4 : move ACKED_COMPONENT && ComputeTouchLatency() to TouchEventQueue ; Merge FindLatency() with ToT Has… #

Total comments: 7

Patch Set 5 : address some of sadrul's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -28 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 3 chunks +55 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/touch_event_queue.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/browser_rendering_stats.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/browser_rendering_stats.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M tools/perf/measurements/smoothness.py View 1 2 1 chunk +15 lines, -10 lines 0 comments Download
M ui/base/latency_info.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M ui/base/latency_info.cc View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Yufeng Shen (Slow to review)
7 years, 6 months ago (2013-06-25 21:21:11 UTC) #1
jbauman
https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode2577 content/browser/renderer_host/render_widget_host_impl.cc:2577: LatencyIter ui_it = latency_map.find(std::make_pair( Is it guaranteed that there ...
7 years, 6 months ago (2013-06-26 08:52:53 UTC) #2
Rick Byers
https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode2574 content/browser/renderer_host/render_widget_host_impl.cc:2574: LatencyIter original_it = latency_map.find(std::make_pair( I think it would be ...
7 years, 6 months ago (2013-06-26 16:34:55 UTC) #3
Yufeng Shen (Slow to review)
https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode2574 content/browser/renderer_host/render_widget_host_impl.cc:2574: LatencyIter original_it = latency_map.find(std::make_pair( On 2013/06/26 16:34:55, Rick Byers ...
7 years, 6 months ago (2013-06-26 20:44:05 UTC) #4
Rick Byers
LGTM (but a few minor suggestions). https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/17757002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode2601 content/browser/renderer_host/render_widget_host_impl.cc:2601: "Event.Latency.Touch.System", On 2013/06/26 ...
7 years, 6 months ago (2013-06-26 21:42:10 UTC) #5
Yufeng Shen (Slow to review)
Hi Rick, I made some additional changes: 1) Change to use only one metric for ...
7 years, 6 months ago (2013-06-26 23:02:26 UTC) #6
jbauman
lgtm
7 years, 6 months ago (2013-06-26 23:07:55 UTC) #7
Rick Byers
Nice, I think this simplicity is better for now - we can always expand it ...
7 years, 6 months ago (2013-06-27 00:21:25 UTC) #8
sadrul
[ please merge with the changes that landed last night ] https://codereview.chromium.org/17757002/diff/13001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): ...
7 years, 5 months ago (2013-06-27 17:44:01 UTC) #9
Yufeng Shen (Slow to review)
https://codereview.chromium.org/17757002/diff/13001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/17757002/diff/13001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2596 content/browser/renderer_host/render_widget_host_impl.cc:2596: latency_info.FindLatency(ui::INPUT_EVENT_LATENCY_ACKED_COMPONENT, On 2013/06/27 17:44:01, sadrul wrote: > Check return ...
7 years, 5 months ago (2013-06-27 19:01:02 UTC) #10
sadrul
I am not familiar with the BrowserRenderingStats/message related changes. The rest of the code LGTM ...
7 years, 5 months ago (2013-06-27 22:40:11 UTC) #11
Yufeng Shen (Slow to review)
cc dtu@ for OWNER on tools/perf/measurements/ cc jln@ for OWNER on content/common/ https://codereview.chromium.org/17757002/diff/28001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc ...
7 years, 5 months ago (2013-06-27 23:44:06 UTC) #12
jln (very slow on Chromium)
On 2013/06/27 23:44:06, Yufeng Shen wrote: > cc dtu@ for OWNER on > tools/perf/measurements/ > ...
7 years, 5 months ago (2013-06-28 00:41:52 UTC) #13
jln (very slow on Chromium)
content/common/view_messages.h lgtm
7 years, 5 months ago (2013-06-28 00:43:32 UTC) #14
dtu
telemetry OWNERS lgtm
7 years, 5 months ago (2013-06-28 18:04:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/17757002/34001
7 years, 5 months ago (2013-06-28 18:05:42 UTC) #16
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-06-28 18:35:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/17757002/34001
7 years, 5 months ago (2013-06-28 18:55:39 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=170876
7 years, 5 months ago (2013-06-28 23:52:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/17757002/34001
7 years, 5 months ago (2013-06-29 00:32:01 UTC) #20
commit-bot: I haz the power
7 years, 5 months ago (2013-06-29 01:22:23 UTC) #21
Message was sent while issue was closed.
Change committed as 209255

Powered by Google App Engine
This is Rietveld 408576698