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

Issue 1775663002: Replace TimeTicks::UnixEpoch with Time::UnixEpoch for the net log (Closed)

Created:
4 years, 9 months ago by Charlie Harrison
Modified:
4 years, 9 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace TimeTicks::UnixEpoch with Time::UnixEpoch for the net log This patch replaces the value of timeTicksOffset for the net log with a value calculated via: (Time::Now() - Time::UnixEpoch()) - (TimeTicks::Now() - TimeTicks()) In JS, TimeTicks values calculated via (t - TimeTicks()) are added to the timeTicksOffset to calculate the wall time that they occurred. This is equivalent to passing the TimeDelta since the epoch, along with a reference monotonic time for subsequent TimeTicks values to subtract off. BUG=592107 Committed: https://crrev.com/796645a3cfdf37d6f9bde8ba0af644a8950df0cc Cr-Commit-Position: refs/heads/master@{#380725}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated comment to be scarier and reference crbug #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M net/log/net_log_util.cc View 1 1 chunk +13 lines, -2 lines 3 comments Download

Messages

Total messages: 33 (7 generated)
Charlie Harrison
mmenke@, charliea@, ptal. This is maybe not the best implementation, but it's simpler than changing ...
4 years, 9 months ago (2016-03-07 23:30:30 UTC) #2
mmenke
[+eroman]: Fun times. I'll think about this tomorrow.
4 years, 9 months ago (2016-03-07 23:35:27 UTC) #4
eroman
lgtm https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc#newcode279 net/log/net_log_util.cc:279: // milliseconds by subtracting the null TimeTicks. I ...
4 years, 9 months ago (2016-03-08 00:11:04 UTC) #5
Charlie Harrison
https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc#newcode279 net/log/net_log_util.cc:279: // milliseconds by subtracting the null TimeTicks. On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 01:14:47 UTC) #6
charliea (OOO until 10-5)
https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc#newcode289 net/log/net_log_util.cc:289: constants_dict->SetString("timeTickOffset", Am I right in that we're just trying ...
4 years, 9 months ago (2016-03-08 17:01:42 UTC) #7
Charlie Harrison
https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/1/net/log/net_log_util.cc#newcode289 net/log/net_log_util.cc:289: constants_dict->SetString("timeTickOffset", On 2016/03/08 at 17:01:42, charliea wrote: > Am ...
4 years, 9 months ago (2016-03-08 17:13:41 UTC) #8
charliea (OOO until 10-5)
On 2016/03/08 17:13:41, csharrison wrote: > I'm not sure why this operation is as flawed ...
4 years, 9 months ago (2016-03-08 19:21:39 UTC) #9
Charlie Harrison
On 2016/03/08 at 19:21:39, charliea wrote: > On 2016/03/08 17:13:41, csharrison wrote: > > I'm ...
4 years, 9 months ago (2016-03-08 20:05:44 UTC) #10
eroman
I am fine with this approach, as it helps remove a dependency on TimeTicks::UnixEpoch. As ...
4 years, 9 months ago (2016-03-08 21:57:34 UTC) #11
Charlie Harrison
On 2016/03/08 at 21:57:34, eroman wrote: > I am fine with this approach, as it ...
4 years, 9 months ago (2016-03-08 22:54:52 UTC) #12
mmenke
On 2016/03/08 22:54:52, csharrison wrote: > On 2016/03/08 at 21:57:34, eroman wrote: > > I ...
4 years, 9 months ago (2016-03-09 18:51:37 UTC) #13
Charlie Harrison
charliea@, want to take a look at the updated comment?
4 years, 9 months ago (2016-03-09 21:13:11 UTC) #14
mmenke
https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc#newcode289 net/log/net_log_util.cc:289: base::TimeTicks::Now() - base::TimeTicks(); This seems to completely defeat the ...
4 years, 9 months ago (2016-03-10 22:19:36 UTC) #15
Charlie Harrison
https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc#newcode289 net/log/net_log_util.cc:289: base::TimeTicks::Now() - base::TimeTicks(); On 2016/03/10 at 22:19:35, mmenke wrote: ...
4 years, 9 months ago (2016-03-10 22:22:25 UTC) #16
mmenke
On 2016/03/10 22:22:25, csharrison wrote: > https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc > File net/log/net_log_util.cc (right): > > https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc#newcode289 > ...
4 years, 9 months ago (2016-03-10 22:39:46 UTC) #17
Charlie Harrison
On 2016/03/10 at 22:39:46, mmenke wrote: > On 2016/03/10 22:22:25, csharrison wrote: > > https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc ...
4 years, 9 months ago (2016-03-10 22:41:09 UTC) #18
eroman
https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc File net/log/net_log_util.cc (right): https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc#newcode289 net/log/net_log_util.cc:289: base::TimeTicks::Now() - base::TimeTicks(); On 2016/03/10 22:22:25, csharrison wrote: > ...
4 years, 9 months ago (2016-03-10 23:18:08 UTC) #19
Charlie Harrison
On 2016/03/10 at 23:18:08, eroman wrote: > https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc > File net/log/net_log_util.cc (right): > > https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc#newcode289 ...
4 years, 9 months ago (2016-03-11 15:37:33 UTC) #20
mmenke
On 2016/03/11 15:37:33, csharrison wrote: > On 2016/03/10 at 23:18:08, eroman wrote: > > https://codereview.chromium.org/1775663002/diff/20001/net/log/net_log_util.cc ...
4 years, 9 months ago (2016-03-11 16:32:38 UTC) #21
charliea (OOO until 10-5)
> The question is, what is the purpose of these timestamps? Which purposes are the ...
4 years, 9 months ago (2016-03-11 18:15:27 UTC) #22
Charlie Harrison
On 2016/03/11 at 18:15:27, charliea wrote: > > The question is, what is the purpose ...
4 years, 9 months ago (2016-03-11 18:20:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775663002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775663002/20001
4 years, 9 months ago (2016-03-11 18:21:49 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195557)
4 years, 9 months ago (2016-03-11 19:36:09 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775663002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775663002/20001
4 years, 9 months ago (2016-03-11 20:26:48 UTC) #30
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-11 21:04:29 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 21:05:59 UTC) #33
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/796645a3cfdf37d6f9bde8ba0af644a8950df0cc
Cr-Commit-Position: refs/heads/master@{#380725}

Powered by Google App Engine
This is Rietveld 408576698