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

Issue 681763003: Add input latency histograms for wheel events (Closed)

Created:
6 years, 1 month ago by ccameron
Modified:
6 years, 1 month ago
CC:
chromium-reviews, ben+aura_chromium.org, tdresser+watch_chromium.org, jam, darin-cc_chromium.org, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add input latency histograms for wheel events This works for touch events, but not for wheel events. Use the existing touch latency machinery to enable logging of wheel events. Update ComputeInputLatencyHistograms to report latency of INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT in the absence of a INPUT_EVENT_LATENCY_UI_COMPONENT, as it is still valid. BUG=224781 Committed: https://crrev.com/19687827d2cbe7bdc377ed3785ce5331b179d091 Cr-Commit-Position: refs/heads/master@{#302518}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : More cleanup #

Total comments: 6

Patch Set 4 : fix HISTOGRAM macro issue #

Total comments: 2

Patch Set 5 : Do counters the right way #

Total comments: 2

Patch Set 6 : Correct name #

Total comments: 2

Patch Set 7 : Fix ., indent, and XML #

Total comments: 2

Patch Set 8 : Add comments about histograms #

Total comments: 8

Patch Set 9 : DCHECK changes #

Total comments: 3

Patch Set 10 : Use switch instead #

Total comments: 1

Patch Set 11 : Fix space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -52 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +65 lines, -43 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +14 lines, -0 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/latency_info.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/latency_info.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 49 (11 generated)
ccameron
Adding jdduke/miletus for latency Adding sadrul for event OWNER.
6 years, 1 month ago (2014-10-27 22:17:17 UTC) #2
Yufeng Shen (Slow to review)
https://codereview.chromium.org/681763003/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/681763003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode1950 content/browser/renderer_host/render_widget_host_impl.cc:1950: CreateInputAckLatencyInfoAndHistogram("Touch", &touch_event.latency); Please add the acked component before adding ...
6 years, 1 month ago (2014-10-28 15:51:24 UTC) #3
ccameron
Thanks -- updated
6 years, 1 month ago (2014-10-28 17:52:30 UTC) #4
Yufeng Shen (Slow to review)
https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h#newcode485 content/browser/renderer_host/render_widget_host_impl.h:485: ui::LatencyInfo CreateInputEventLatencyInfoIfNotExist( why do you need to change the ...
6 years, 1 month ago (2014-10-28 18:02:25 UTC) #5
ccameron
https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h#newcode485 content/browser/renderer_host/render_widget_host_impl.h:485: ui::LatencyInfo CreateInputEventLatencyInfoIfNotExist( On 2014/10/28 18:02:25, Yufeng Shen wrote: > ...
6 years, 1 month ago (2014-10-28 23:18:28 UTC) #6
Yufeng Shen (Slow to review)
latency_info lgtm
6 years, 1 month ago (2014-10-28 23:30:50 UTC) #7
ccameron
Adding sky@ for ui/ stamp.
6 years, 1 month ago (2014-10-29 01:30:44 UTC) #8
jdduke (slow)
https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h#newcode490 content/browser/renderer_host/render_widget_host_impl.h:490: void ComputeInputLatencyHistograms( Could be wrong, but I don't think ...
6 years, 1 month ago (2014-10-29 01:47:37 UTC) #9
ccameron
https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h#newcode490 content/browser/renderer_host/render_widget_host_impl.h:490: void ComputeInputLatencyHistograms( On 2014/10/29 01:47:37, jdduke wrote: > Could ...
6 years, 1 month ago (2014-10-29 02:09:03 UTC) #10
jdduke (slow)
https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h#newcode490 content/browser/renderer_host/render_widget_host_impl.h:490: void ComputeInputLatencyHistograms( On 2014/10/29 02:09:02, ccameron1 wrote: > On ...
6 years, 1 month ago (2014-10-29 02:18:37 UTC) #11
ccameron
https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/40001/content/browser/renderer_host/render_widget_host_impl.h#newcode490 content/browser/renderer_host/render_widget_host_impl.h:490: void ComputeInputLatencyHistograms( On 2014/10/29 02:18:37, jdduke wrote: > On ...
6 years, 1 month ago (2014-10-29 03:29:42 UTC) #12
sky
LGTM
6 years, 1 month ago (2014-10-29 17:22:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681763003/80001
6 years, 1 month ago (2014-10-29 17:48:45 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel/builds/4593)
6 years, 1 month ago (2014-10-29 18:54:39 UTC) #18
ccameron
Turns out the HISTOGRAM macros must take a static argument (each instance of the macro ...
6 years, 1 month ago (2014-10-30 20:28:00 UTC) #19
Yufeng Shen (Slow to review)
https://codereview.chromium.org/681763003/diff/100001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/100001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2107 content/browser/renderer_host/render_widget_host_impl.cc:2107: switch (type) { Does this help ? https://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/render_widget.cc&l=1001&pv=1&rcl=1414615106&type=cs&sq=package:chromium
6 years, 1 month ago (2014-10-30 20:42:25 UTC) #20
ccameron
Updated. https://codereview.chromium.org/681763003/diff/100001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/100001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2107 content/browser/renderer_host/render_widget_host_impl.cc:2107: switch (type) { On 2014/10/30 20:42:25, Yufeng Shen ...
6 years, 1 month ago (2014-10-30 20:51:22 UTC) #21
Yufeng Shen (Slow to review)
https://codereview.chromium.org/681763003/diff/120001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/120001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2105 content/browser/renderer_host/render_widget_host_impl.cc:2105: 1, there should be no "." between Touch/Wheel and ...
6 years, 1 month ago (2014-10-30 20:55:46 UTC) #22
Yufeng Shen (Slow to review)
6 years, 1 month ago (2014-10-30 20:55:47 UTC) #23
ccameron
Thanks! https://codereview.chromium.org/681763003/diff/120001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/120001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2105 content/browser/renderer_host/render_widget_host_impl.cc:2105: 1, On 2014/10/30 20:55:46, Yufeng Shen wrote: > ...
6 years, 1 month ago (2014-10-30 21:14:15 UTC) #24
Yufeng Shen (Slow to review)
https://codereview.chromium.org/681763003/diff/140001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/140001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2120 content/browser/renderer_host/render_widget_host_impl.cc:2120: base::StringPrintf("Event.Latency.Browser.%s.Acked", type), and the "." here ? Also forgot ...
6 years, 1 month ago (2014-10-30 21:18:40 UTC) #25
ccameron
Thanks (eep) -- updated. Adding jar for the histograms.xml review https://codereview.chromium.org/681763003/diff/140001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/140001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2120 ...
6 years, 1 month ago (2014-10-30 21:36:00 UTC) #31
Alexei Svitkine (slow)
https://codereview.chromium.org/681763003/diff/200001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/200001/content/browser/renderer_host/render_widget_host_impl.h#newcode491 content/browser/renderer_host/render_widget_host_impl.h:491: const char* event_type_name, Can you make this param an ...
6 years, 1 month ago (2014-10-31 19:00:40 UTC) #33
ccameron
https://codereview.chromium.org/681763003/diff/200001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/200001/content/browser/renderer_host/render_widget_host_impl.h#newcode491 content/browser/renderer_host/render_widget_host_impl.h:491: const char* event_type_name, On 2014/10/31 19:00:39, Alexei Svitkine wrote: ...
6 years, 1 month ago (2014-10-31 19:09:23 UTC) #34
ccameron
6 years, 1 month ago (2014-10-31 19:09:24 UTC) #35
Alexei Svitkine (slow)
lgtm with a suggestion https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.h#newcode492 content/browser/renderer_host/render_widget_host_impl.h:492: // XML file any time ...
6 years, 1 month ago (2014-10-31 20:18:20 UTC) #36
jdduke (slow)
Sorry for the drive-by... https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2099 content/browser/renderer_host/render_widget_host_impl.cc:2099: DCHECK(ui_component.event_count == 1); Nit: DCHECK_EQ, ...
6 years, 1 month ago (2014-10-31 20:46:41 UTC) #37
ccameron
https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2099 content/browser/renderer_host/render_widget_host_impl.cc:2099: DCHECK(ui_component.event_count == 1); On 2014/10/31 20:46:40, jdduke wrote: > ...
6 years, 1 month ago (2014-10-31 22:13:05 UTC) #38
jdduke (slow)
https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2104 content/browser/renderer_host/render_widget_host_impl.cc:2104: base::StringPrintf("Event.Latency.Browser.%sUI", type), On 2014/10/31 22:13:05, ccameron1 wrote: > On ...
6 years, 1 month ago (2014-10-31 22:23:32 UTC) #39
ccameron
Thanks all! https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/220001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2104 content/browser/renderer_host/render_widget_host_impl.cc:2104: base::StringPrintf("Event.Latency.Browser.%sUI", type), On 2014/10/31 22:23:32, jdduke wrote: ...
6 years, 1 month ago (2014-10-31 23:46:05 UTC) #40
Alexei Svitkine (slow)
FWIW, I don't think the patch set 4 solution is necessarily the only way to ...
6 years, 1 month ago (2014-11-01 10:24:43 UTC) #41
jar (doing other things)
https://codereview.chromium.org/681763003/diff/240001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/240001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2086 content/browser/renderer_host/render_widget_host_impl.cc:2086: const char* type, If this is latency sensitive.... which ...
6 years, 1 month ago (2014-11-01 17:54:30 UTC) #42
ccameron
Okay, in that case, it seems like we should go back to the scheme from ...
6 years, 1 month ago (2014-11-03 18:58:09 UTC) #43
Alexei Svitkine (slow)
lgtm, thanks
6 years, 1 month ago (2014-11-03 19:01:52 UTC) #44
Yufeng Shen (Slow to review)
https://codereview.chromium.org/681763003/diff/260001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/681763003/diff/260001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2098 content/browser/renderer_host/render_widget_host_impl.cc:2098: 0, nit: indentation.
6 years, 1 month ago (2014-11-03 19:59:34 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681763003/280001
6 years, 1 month ago (2014-11-03 22:19:32 UTC) #47
commit-bot: I haz the power
Committed patchset #11 (id:280001)
6 years, 1 month ago (2014-11-03 23:34:08 UTC) #48
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 23:34:56 UTC) #49
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/19687827d2cbe7bdc377ed3785ce5331b179d091
Cr-Commit-Position: refs/heads/master@{#302518}

Powered by Google App Engine
This is Rietveld 408576698