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

Issue 18589002: cc: Fix and simplify DelayBasedTimeSource (Closed)

Created:
7 years, 5 months ago by brianderson
Modified:
7 years, 5 months ago
Reviewers:
ajuma, nduca
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, Dmitry Lomov (no reviews)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Fix and simplify DelayBasedTimeSource - This converts some floating point math to integer math to avoid rounding errors. - Assigns last_tick_time_ to be the time it was *supposed* to tick and no longer uses it as a synonym for "now". - Adds trace events to help debug when the interval or phase changes. BUG=256650 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210101

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix tests; Tick now if next tick time can be now, rather than skipping; #

Total comments: 1

Patch Set 3 : Use instant trace events #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -64 lines) Patch
M cc/scheduler/delay_based_time_source.h View 1 3 chunks +1 line, -8 lines 0 comments Download
M cc/scheduler/delay_based_time_source.cc View 1 2 9 chunks +27 lines, -46 lines 0 comments Download
M cc/scheduler/delay_based_time_source_unittest.cc View 1 10 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
brianderson
Turns out DBTS is causing some flake on the bots, most likely because of rounding ...
7 years, 5 months ago (2013-07-02 23:56:33 UTC) #1
brianderson
https://codereview.chromium.org/18589002/diff/1/cc/scheduler/delay_based_time_source.cc File cc/scheduler/delay_based_time_source.cc (right): https://codereview.chromium.org/18589002/diff/1/cc/scheduler/delay_based_time_source.cc#newcode21 cc/scheduler/delay_based_time_source.cc:21: static const int kDoubleTickDivisor = 4; We can divide ...
7 years, 5 months ago (2013-07-03 00:01:54 UTC) #2
nduca
lgtm https://codereview.chromium.org/18589002/diff/10001/cc/scheduler/delay_based_time_source.cc File cc/scheduler/delay_based_time_source.cc (right): https://codereview.chromium.org/18589002/diff/10001/cc/scheduler/delay_based_time_source.cc#newcode106 cc/scheduler/delay_based_time_source.cc:106: TRACE_EVENT0("cc", "DelayBasedTimeSource::IntervalChanged"); I'd suggest using an instant event ...
7 years, 5 months ago (2013-07-03 05:37:25 UTC) #3
nduca
the instant comment applies to all the events you issue, i think...
7 years, 5 months ago (2013-07-03 05:37:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/18589002/23001
7 years, 5 months ago (2013-07-03 17:50:29 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-04 02:03:20 UTC) #6
Message was sent while issue was closed.
Change committed as 210101

Powered by Google App Engine
This is Rietveld 408576698