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

Issue 2570893003: Clean up LatencyInfo and RWHLatencyTracker. (Closed)

Created:
4 years ago by tdresser
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, jam, qsr+mojo_chromium.org, tdresser+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up LatencyInfo and RWHLatencyTracker. May break trace processing? In preparation for landing keyboard event latency code, do some cleanup of the existing input latency logic. In particular, get rid of modality specific TERMINATED components. BUG=673731 Review-Url: https://codereview.chromium.org/2570893003 Cr-Commit-Position: refs/heads/master@{#445532} Committed: https://chromium.googlesource.com/chromium/src/+/fcda569a9fade182b0771194e91be0ab46fb7213

Patch Set 1 #

Patch Set 2 : Rebase & polish. #

Patch Set 3 : Fix bug & test. #

Patch Set 4 : Fix bug with coalesced events. #

Total comments: 5

Patch Set 5 : Remove functional change, nits. #

Patch Set 6 : Add comment about coalescing. #

Total comments: 3

Patch Set 7 : No more macros. #

Patch Set 8 : Example of STATIC_HISTOGRAM_POINTER_GROUP. #

Patch Set 9 : Splitting up patch - not changing histogram API. #

Total comments: 2

Patch Set 10 : Avoid introducing new bare calls to FactoryGet. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -270 lines) Patch
M content/browser/renderer_host/input/render_widget_host_latency_tracker.cc View 1 2 3 4 5 6 7 8 9 22 chunks +112 lines, -195 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 6 chunks +6 lines, -6 lines 0 comments Download
M ui/events/latency_info.h View 1 2 3 4 1 chunk +3 lines, -16 lines 0 comments Download
M ui/events/latency_info.cc View 1 2 3 4 2 chunks +2 lines, -10 lines 0 comments Download
M ui/events/mojo/latency_info.mojom View 1 2 3 4 1 chunk +3 lines, -15 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.cc View 1 2 3 4 2 chunks +4 lines, -28 lines 0 comments Download

Messages

Total messages: 46 (25 generated)
tdresser
+kenrb for mojo +dtapuska for general input +isherman for histogram macro usage in render_widget_host_latency_tracker.cc +eakuefner ...
4 years ago (2016-12-15 13:15:55 UTC) #18
dtapuska
I feel this has a massive memory leak. Perhaps I'm wrong in understanding the histograms ...
4 years ago (2016-12-15 14:54:49 UTC) #19
tdresser
Regarding memory leaks - yeah, I think you're right. This appears to be a relatively ...
4 years ago (2016-12-15 15:26:37 UTC) #20
kenrb
mojo lgtm
4 years ago (2016-12-15 21:19:50 UTC) #23
eakuefner
+benjhayden, who's a more appropriate reviewer to answer the question posed to me.
4 years ago (2016-12-15 21:26:46 UTC) #25
benjhayden
Sorry, I'm having trouble understanding how this change might affect traces. Nothing in catapult references ...
4 years ago (2016-12-15 21:34:07 UTC) #26
Ilya Sherman
Are there any changes to what histogram data is recorded, or just changes to how ...
4 years ago (2016-12-15 23:14:49 UTC) #27
tdresser
Thanks Ben - I just wanted to make sure that grepping the catapult repo was ...
4 years ago (2016-12-16 13:48:53 UTC) #28
Ilya Sherman
https://codereview.chromium.org/2570893003/diff/100001/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc File content/browser/renderer_host/input/render_widget_host_latency_tracker.cc (right): https://codereview.chromium.org/2570893003/diff/100001/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc#newcode91 content/browser/renderer_host/input/render_widget_host_latency_tracker.cc:91: ->Add((end.last_event_time - start.first_event_time).InMicroseconds()); On 2016/12/16 13:48:53, tdresser wrote: > ...
4 years ago (2016-12-17 01:25:21 UTC) #29
tdresser
The performance concerns were just based on the comments in histogram_functions.h. "These functions are slower ...
4 years ago (2016-12-19 14:17:59 UTC) #30
Ilya Sherman
On 2016/12/19 14:17:59, tdresser - OOO until Jan 3 wrote: > The performance concerns were ...
4 years ago (2016-12-19 20:56:20 UTC) #31
tdresser
On 2016/12/19 20:56:20, Ilya Sherman (Away De.29-Ja.4) wrote: > On 2016/12/19 14:17:59, tdresser - OOO ...
3 years, 11 months ago (2017-01-03 14:52:40 UTC) #32
Ilya Sherman
On 2017/01/03 14:52:40, tdresser wrote: > On 2016/12/19 20:56:20, Ilya Sherman (Away De.29-Ja.4) wrote: > ...
3 years, 11 months ago (2017-01-07 00:57:03 UTC) #33
tdresser
In this patch, I've migrated everything over to histogram_functions instead of macros, and cleaned up ...
3 years, 11 months ago (2017-01-19 21:38:29 UTC) #35
Ilya Sherman
On 2017/01/19 21:38:29, tdresser wrote: > In this patch, I've migrated everything over to histogram_functions ...
3 years, 11 months ago (2017-01-19 22:51:04 UTC) #36
tdresser
I think I am going to migrate this over to STATIC_HISTOGRAM_POINTER group, but I might ...
3 years, 11 months ago (2017-01-23 18:41:32 UTC) #37
Ilya Sherman
https://codereview.chromium.org/2570893003/diff/160001/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc File content/browser/renderer_host/input/render_widget_host_latency_tracker.cc (right): https://codereview.chromium.org/2570893003/diff/160001/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc#newcode111 content/browser/renderer_host/input/render_widget_host_latency_tracker.cc:111: ->Add((end.last_event_time - start.first_event_time).InMilliseconds()); As I mentioned before, it's preferable ...
3 years, 11 months ago (2017-01-23 20:02:33 UTC) #38
tdresser
https://codereview.chromium.org/2570893003/diff/160001/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc File content/browser/renderer_host/input/render_widget_host_latency_tracker.cc (right): https://codereview.chromium.org/2570893003/diff/160001/content/browser/renderer_host/input/render_widget_host_latency_tracker.cc#newcode111 content/browser/renderer_host/input/render_widget_host_latency_tracker.cc:111: ->Add((end.last_event_time - start.first_event_time).InMilliseconds()); On 2017/01/23 20:02:33, Ilya Sherman wrote: ...
3 years, 11 months ago (2017-01-23 20:34:02 UTC) #39
Ilya Sherman
histogram changes lgtm, thanks
3 years, 11 months ago (2017-01-23 21:48:03 UTC) #40
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/2570893003/180001
3 years, 11 months ago (2017-01-23 21:50:22 UTC) #43
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 23:09:43 UTC) #46
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/fcda569a9fade182b0771194e91b...

Powered by Google App Engine
This is Rietveld 408576698