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

Issue 1284053004: Makes TraceTicks use lowres times on Win when highres are buggy or slow (Closed)

Created:
5 years, 4 months ago by charliea (OOO until 10-5)
Modified:
5 years, 3 months ago
CC:
chromium-reviews, nduca, jbauman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Makes TraceTicks use lowres times on Win when highres are buggy or slow We're doing this so that we can eventually consolidate TraceTicks and TimeTicks and have one type of timestamp that is reliable, monotonic, and comparable. Also, using the high-resolution clock when it's unreliable or slow is of questionable benefit, as it's easier to make tracing tools accommodate a coarse timer than one that's unreliable or slow. BUG=345845 Committed: https://crrev.com/d26a96920910558328b0d6e50af72ccde3a1e625 Cr-Commit-Position: refs/heads/master@{#345449}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Removed g_system_trace_now_function #

Total comments: 2

Patch Set 4 : Improved the comments about why we're changing timer behavior #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -29 lines) Patch
M base/time/time_win.cc View 1 2 3 6 chunks +26 lines, -29 lines 0 comments Download

Messages

Total messages: 40 (14 generated)
charliea (OOO until 10-5)
Hi Fadi, Would you mind doing a pre-review of this CL?
5 years, 4 months ago (2015-08-21 21:13:49 UTC) #2
fmeawad
https://codereview.chromium.org/1284053004/diff/20001/base/time/time_win.cc File base/time/time_win.cc (right): https://codereview.chromium.org/1284053004/diff/20001/base/time/time_win.cc#newcode451 base/time/time_win.cc:451: now_function = system_trace_now_function = &RolloverProtectedNow; Can you explain why ...
5 years, 4 months ago (2015-08-21 21:24:40 UTC) #4
charliea (OOO until 10-5)
On 2015/08/21 21:24:40, fmeawad wrote: > https://codereview.chromium.org/1284053004/diff/20001/base/time/time_win.cc > File base/time/time_win.cc (right): > > https://codereview.chromium.org/1284053004/diff/20001/base/time/time_win.cc#newcode451 > ...
5 years, 4 months ago (2015-08-24 17:21:44 UTC) #5
fmeawad
lg 2 me
5 years, 4 months ago (2015-08-24 17:39:48 UTC) #7
charliea (OOO until 10-5)
5 years, 4 months ago (2015-08-24 19:40:58 UTC) #9
charliea (OOO until 10-5)
+r:brianderson -r:nduca +cc:nduca
5 years, 4 months ago (2015-08-24 19:59:11 UTC) #11
nduca
lgtm but lets go with brian for the main review
5 years, 4 months ago (2015-08-24 20:00:11 UTC) #13
charliea (OOO until 10-5)
+r:miu (at brianderson's suggestion)
5 years, 4 months ago (2015-08-24 20:45:32 UTC) #15
brianderson
lgtm too
5 years, 4 months ago (2015-08-24 20:47:13 UTC) #16
miu
lgtm
5 years, 4 months ago (2015-08-24 21:56:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1284053004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1284053004/40001
5 years, 4 months ago (2015-08-25 13:48:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/92418)
5 years, 4 months ago (2015-08-25 13:56:31 UTC) #21
charliea (OOO until 10-5)
+R:jam for OWNERS
5 years, 4 months ago (2015-08-25 14:01:57 UTC) #23
jam
On 2015/08/25 14:01:57, charliea wrote: > +R:jam for OWNERS please use an owner from base/
5 years, 4 months ago (2015-08-25 15:23:59 UTC) #24
charliea (OOO until 10-5)
+R: danakj -R:jam
5 years, 4 months ago (2015-08-25 15:30:59 UTC) #26
danakj
https://codereview.chromium.org/1284053004/diff/40001/base/time/time_win.cc File base/time/time_win.cc (right): https://codereview.chromium.org/1284053004/diff/40001/base/time/time_win.cc#newcode445 base/time/time_win.cc:445: NowFunction now_function; Can you add comments saying that TraceTicks::Now() ...
5 years, 4 months ago (2015-08-25 18:37:53 UTC) #27
charliea (OOO until 10-5)
On 2015/08/25 18:37:53, danakj wrote: > https://codereview.chromium.org/1284053004/diff/40001/base/time/time_win.cc > File base/time/time_win.cc (right): > > https://codereview.chromium.org/1284053004/diff/40001/base/time/time_win.cc#newcode445 > ...
5 years, 4 months ago (2015-08-25 20:17:07 UTC) #28
charliea (OOO until 10-5)
https://codereview.chromium.org/1284053004/diff/40001/base/time/time_win.cc File base/time/time_win.cc (right): https://codereview.chromium.org/1284053004/diff/40001/base/time/time_win.cc#newcode445 base/time/time_win.cc:445: NowFunction now_function; On 2015/08/25 18:37:53, danakj wrote: > Can ...
5 years, 4 months ago (2015-08-25 20:17:16 UTC) #29
danakj
LGTM
5 years, 4 months ago (2015-08-25 20:24:48 UTC) #30
danakj
+jbauman fyi
5 years, 4 months ago (2015-08-25 20:25:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1284053004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1284053004/60001
5 years, 4 months ago (2015-08-25 20:39:59 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-25 22:04:03 UTC) #35
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d26a96920910558328b0d6e50af72ccde3a1e625 Cr-Commit-Position: refs/heads/master@{#345449}
5 years, 4 months ago (2015-08-25 22:04:40 UTC) #36
Nico
This broke the clang/win build: ..\..\base\time\time_win.cc(383,11) : error: unused function 'InitialSystemTraceNowFunction' [-Werror,-Wunused-function] TimeDelta InitialSystemTraceNowFunction(); ^ ...
5 years, 4 months ago (2015-08-25 22:23:50 UTC) #38
Nico
On 2015/08/25 22:23:50, Nico wrote: > This broke the clang/win build: > > ..\..\base\time\time_win.cc(383,11) : ...
5 years, 4 months ago (2015-08-25 22:26:00 UTC) #39
charliea (OOO until 10-5)
5 years, 3 months ago (2015-08-26 15:38:11 UTC) #40
Message was sent while issue was closed.
On 2015/08/25 22:26:00, Nico wrote:
> On 2015/08/25 22:23:50, Nico wrote:
> > This broke the clang/win build:
> > 
> > ..\..\base\time\time_win.cc(383,11) : error: unused function
> > 'InitialSystemTraceNowFunction' [-Werror,-Wunused-function]
> > TimeDelta InitialSystemTraceNowFunction();
> >           ^
> > 1 error generated.
> > 
> > Can you fix, please?
> 
> Nevermind, got it: https://codereview.chromium.org/1312313002

Sorry about that Nico.

Powered by Google App Engine
This is Rietveld 408576698