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

Issue 2695603004: [VSync Queue] Add tracing for event queuing time and coalesced count (Closed)

Created:
3 years, 10 months ago by chongz
Modified:
3 years, 10 months ago
CC:
chromium-reviews, dtapuska+chromiumwatch_chromium.org, tdresser+watch_chromium.org, dtapuska
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[VSync Queue] Add tracing for event queuing time and coalesced count We need these tracing to understand when the events are push and popped, and how many events are coalesced together. The tracing works as follow: 1. For each new event, we first check if it could be coalesced with existing events or have to be pushed to the end 2. If it could be coalesced, we simply coalesced it 3. Otherwise we push and begin a new tracing with |id == new_event->first_original_event()| 4. Each time an queue was popped we end the tracing with |id == new_event->first_original_event()| Example flow of original events: Case 1 - |ScrollUpdate| + |ScrollUpdate| => |ScrollUpdate| Original Events - [o1, o2] + [o3, o4] => [o1, o2, o3, o4] Case 2 - |PinchUpdate| + |ScrollUpdate| => |ScrollUpdate| + |PinchUpdate| Original Events - [o1, o2] + [o3, o4] => [] + [o1, o2, o3, o4] Please see bug for an example tracing picture. BUG=636332 Review-Url: https://codereview.chromium.org/2695603004 Cr-Commit-Position: refs/heads/master@{#451094} Committed: https://chromium.googlesource.com/chromium/src/+/b6e0dbdfb8e8aec9b3066ce3e835e21e4915be4a

Patch Set 1 #

Total comments: 1

Patch Set 2 : Trace original events and add unittest #

Patch Set 3 : Fix unittest: Add MessageLoop attribuate #

Total comments: 4

Patch Set 4 : Add comments for nestable tracing and |first_original_event()| #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -0 lines) Patch
M ui/events/blink/compositor_thread_event_queue.cc View 1 2 3 3 chunks +15 lines, -0 lines 0 comments Download
M ui/events/blink/event_with_callback.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 2 5 chunks +111 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (26 generated)
chongz
tdresser@ PTAL, thanks!
3 years, 10 months ago (2017-02-14 16:00:10 UTC) #5
tdresser
+oysteine, is there an easy way to write tests for what trace events are recorded? ...
3 years, 10 months ago (2017-02-14 16:31:54 UTC) #7
oystein (OOO til 10th of July)
On 2017/02/14 at 16:31:54, tdresser wrote: > +oysteine, is there an easy way to write ...
3 years, 10 months ago (2017-02-14 17:56:57 UTC) #10
tdresser
On 2017/02/14 17:56:57, oystein wrote: > On 2017/02/14 at 16:31:54, tdresser wrote: > > +oysteine, ...
3 years, 10 months ago (2017-02-14 18:01:15 UTC) #11
chongz
tdresser@ I've 1. Rewrote tracing; 2. Updated description; 3. Uploaded a sample tracing picture to ...
3 years, 10 months ago (2017-02-14 22:37:57 UTC) #19
tdresser
Awesome, thanks so much for the test! https://codereview.chromium.org/2695603004/diff/40001/ui/events/blink/compositor_thread_event_queue.cc File ui/events/blink/compositor_thread_event_queue.cc (right): https://codereview.chromium.org/2695603004/diff/40001/ui/events/blink/compositor_thread_event_queue.cc#newcode25 ui/events/blink/compositor_thread_event_queue.cc:25: TRACE_EVENT_NESTABLE_ASYNC_BEGIN0("input", In ...
3 years, 10 months ago (2017-02-16 13:44:18 UTC) #26
tdresser
LGTM, as we covered the comments offline. Can you add a comment about when these ...
3 years, 10 months ago (2017-02-16 14:56:52 UTC) #27
chongz
https://codereview.chromium.org/2695603004/diff/40001/ui/events/blink/compositor_thread_event_queue.cc File ui/events/blink/compositor_thread_event_queue.cc (right): https://codereview.chromium.org/2695603004/diff/40001/ui/events/blink/compositor_thread_event_queue.cc#newcode25 ui/events/blink/compositor_thread_event_queue.cc:25: TRACE_EVENT_NESTABLE_ASYNC_BEGIN0("input", On 2017/02/16 13:44:18, tdresser wrote: > In what ...
3 years, 10 months ago (2017-02-16 15:08:58 UTC) #28
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/2695603004/60001
3 years, 10 months ago (2017-02-16 15:17:28 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/120562)
3 years, 10 months ago (2017-02-16 16:49:27 UTC) #33
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/2695603004/60001
3 years, 10 months ago (2017-02-16 20:29:49 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 20:46:14 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b6e0dbdfb8e8aec9b3066ce3e835...

Powered by Google App Engine
This is Rietveld 408576698