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

Issue 2754943002: Reimplement vsync latency UMA to be based on BeginImplFrame rather than BeginMainFrame (Closed)

Created:
3 years, 9 months ago by stanisc
Modified:
3 years, 9 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, scheduler-bugs_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reimplement vsync latency UMA to be based on BeginImplFrame rather than BeginMainFrame The previous fix that I submitted a couple of days ago mistakenly hooked to a wrong Scheduler method which resulted in recording latency for throttled BeginMainFrame call. BeginImplFrame is a much better method to hook to. I verified this locally by looking at chrome://histograms. The browser side histogram now looks way cleaner than in the first implementation. BUG=701181 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2754943002 Cr-Commit-Position: refs/heads/master@{#457676} Committed: https://chromium.googlesource.com/chromium/src/+/0828f5b83f4835d9772dab5bd0bea6d8d9704737

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed CR feedback #

Total comments: 4

Patch Set 3 : Changed UMA metric name, removed VsyncTo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -49 lines) Patch
M cc/scheduler/compositor_timing_history.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M cc/scheduler/compositor_timing_history.cc View 1 2 12 chunks +21 lines, -21 lines 0 comments Download
M cc/scheduler/compositor_timing_history_unittest.cc View 7 chunks +8 lines, -8 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/scheduler.cc View 1 4 chunks +6 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 4 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
stanisc
brianderson@, please review cc/scheduler changes. isherman@, please review histograms.xml
3 years, 9 months ago (2017-03-16 18:41:21 UTC) #4
brianderson
https://codereview.chromium.org/2754943002/diff/1/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/2754943002/diff/1/cc/scheduler/compositor_timing_history.cc#newcode202 cc/scheduler/compositor_timing_history.cc:202: void AddBeginImplFrameLatency(base::TimeDelta delta) override { Nit: Here and below, ...
3 years, 9 months ago (2017-03-16 19:11:57 UTC) #6
Ilya Sherman
Metrics LGTM
3 years, 9 months ago (2017-03-16 20:35:56 UTC) #7
stanisc
https://codereview.chromium.org/2754943002/diff/1/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/2754943002/diff/1/cc/scheduler/compositor_timing_history.cc#newcode202 cc/scheduler/compositor_timing_history.cc:202: void AddBeginImplFrameLatency(base::TimeDelta delta) override { On 2017/03/16 19:11:56, brianderson ...
3 years, 9 months ago (2017-03-16 20:45:49 UTC) #8
brianderson
lgtm https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc#newcode152 cc/scheduler/compositor_timing_history.cc:152: "Scheduling.Renderer.VsyncToBeginImplFrameLatency", delta); Using the "Vsync" is true on ...
3 years, 9 months ago (2017-03-16 20:53:16 UTC) #9
stanisc
https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc#newcode152 cc/scheduler/compositor_timing_history.cc:152: "Scheduling.Renderer.VsyncToBeginImplFrameLatency", delta); On 2017/03/16 20:53:16, brianderson wrote: > Using ...
3 years, 9 months ago (2017-03-16 21:01:12 UTC) #10
Ilya Sherman
https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc#newcode152 cc/scheduler/compositor_timing_history.cc:152: "Scheduling.Renderer.VsyncToBeginImplFrameLatency", delta); On 2017/03/16 21:01:12, stanisc wrote: > On ...
3 years, 9 months ago (2017-03-16 21:28:04 UTC) #11
stanisc
https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc File cc/scheduler/compositor_timing_history.cc (right): https://codereview.chromium.org/2754943002/diff/20001/cc/scheduler/compositor_timing_history.cc#newcode152 cc/scheduler/compositor_timing_history.cc:152: "Scheduling.Renderer.VsyncToBeginImplFrameLatency", delta); On 2017/03/16 21:28:04, Ilya Sherman wrote: > ...
3 years, 9 months ago (2017-03-16 23:17:41 UTC) #13
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/2754943002/40001
3 years, 9 months ago (2017-03-17 02:47:06 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 03:39:25 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0828f5b83f4835d9772dab5bd0be...

Powered by Google App Engine
This is Rietveld 408576698