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

Issue 1681393003: cc: Add MainAndImplFrameTimeDelta UMA. (Closed)

Created:
4 years, 10 months ago by brianderson
Modified:
4 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, scheduler-bugs_chromium.org, asvitkine+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add MainAndImplFrameTimeDelta UMA. Records how often the main and impl threads are synchronized when the compositor draws with a new active tree. Some DCHECKS are disabled for the synchronous compositor because draws can come in at any time or not at all. BUG=582749 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/bb917ddb01a8c3e373d6df02046c69ff00b07254 Cr-Commit-Position: refs/heads/master@{#376628}

Patch Set 1 #

Total comments: 3

Patch Set 2 : BooleanSynchronized; fix comiple error'; #

Patch Set 3 : Non bool version; Fix abort bug; #

Total comments: 1

Patch Set 4 : Fix sync compositor and aborted draws. #

Total comments: 1

Patch Set 5 : CanDraw unit test #

Patch Set 6 : split out CanDraw change and rebase #

Patch Set 7 : - active_tree_needs_first_draw_ = true #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -40 lines) Patch
M cc/scheduler/compositor_timing_history.h View 1 2 3 5 chunks +14 lines, -3 lines 0 comments Download
M cc/scheduler/compositor_timing_history.cc View 1 2 3 4 11 chunks +66 lines, -13 lines 0 comments Download
M cc/scheduler/compositor_timing_history_unittest.cc View 1 2 3 10 chunks +13 lines, -12 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 chunks +14 lines, -4 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/scheduler_test_common.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M cc/test/scheduler_test_common.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (10 generated)
brianderson
ptal!
4 years, 10 months ago (2016-02-10 02:14:10 UTC) #3
tdresser
cc vollick. LGTM, though reporting the number of deadlines the main thread missed might be ...
4 years, 10 months ago (2016-02-10 17:15:20 UTC) #4
Sami
lgtm. https://codereview.chromium.org/1681393003/diff/1/cc/scheduler/compositor_timing_history.h File cc/scheduler/compositor_timing_history.h (right): https://codereview.chromium.org/1681393003/diff/1/cc/scheduler/compositor_timing_history.h#newcode68 cc/scheduler/compositor_timing_history.h:68: bool main_thread_missed_last_deadline); On 2016/02/10 17:15:20, tdresser wrote: > ...
4 years, 10 months ago (2016-02-10 17:28:54 UTC) #6
tdresser
On 2016/02/10 17:28:54, Sami wrote: > lgtm. > > https://codereview.chromium.org/1681393003/diff/1/cc/scheduler/compositor_timing_history.h > File cc/scheduler/compositor_timing_history.h (right): > ...
4 years, 10 months ago (2016-02-10 18:02:22 UTC) #7
Ilya Sherman
LGTM % the below comment: https://codereview.chromium.org/1681393003/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1681393003/diff/1/tools/metrics/histograms/histograms.xml#newcode43015 tools/metrics/histograms/histograms.xml:43015: +<histogram name="Scheduling.MainAndImplSynchronized"> Please associate ...
4 years, 10 months ago (2016-02-10 20:10:58 UTC) #8
brianderson
On 2016/02/10 17:28:54, Sami wrote: > lgtm. > > https://codereview.chromium.org/1681393003/diff/1/cc/scheduler/compositor_timing_history.h > File cc/scheduler/compositor_timing_history.h (right): > ...
4 years, 10 months ago (2016-02-10 23:04:55 UTC) #9
brianderson
https://codereview.chromium.org/1681393003/diff/40001/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/1681393003/diff/40001/cc/scheduler/compositor_timing_history.cc#newcode719 cc/scheduler/compositor_timing_history.cc:719: DCHECK_EQ(main_thread_missed_last_deadline, !main_and_impl_delta.is_zero()); Good thing we tried recording the delta. ...
4 years, 10 months ago (2016-02-11 01:43:45 UTC) #10
tdresser
Metrics part of things LGTM.
4 years, 10 months ago (2016-02-11 14:11:49 UTC) #11
brianderson
Patch changed significantly. Sunny, can you take a look before I land? https://codereview.chromium.org/1681393003/diff/60001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc ...
4 years, 10 months ago (2016-02-19 01:52:17 UTC) #13
brianderson
Added unit test that fails without the changes to the state machine regarding aborted draws ...
4 years, 10 months ago (2016-02-19 02:19:45 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681393003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681393003/80001
4 years, 10 months ago (2016-02-19 02:20:41 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-19 05:07:44 UTC) #18
brianderson
Had time, so split out the CanDraw change + test in https://codereview.chromium.org/1715863002/ and rebased on ...
4 years, 10 months ago (2016-02-19 23:36:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681393003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681393003/120001
4 years, 10 months ago (2016-02-20 04:11:30 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-20 05:21:26 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-20 05:22:26 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/bb917ddb01a8c3e373d6df02046c69ff00b07254
Cr-Commit-Position: refs/heads/master@{#376628}

Powered by Google App Engine
This is Rietveld 408576698