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

Issue 2528613002: base: Print sub-second resolution timestamps (Closed)

Created:
4 years ago by Daniel Kurtz
Modified:
4 years ago
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Print sub-second resolution timestamps Currently Chrome logs time in full seconds. On Chrome OS, all other loggers use at least microsecond resolution. This makes it hard to compare Chrome timestamps to other system events. Instead, have Chrome use gettimeofday() on POSIX to fetch microsecond resolution timestamps, and GetLocalTime() on Windows to fetch millisecond resolution timestamps Note: the Windows implementation is adapted from mini_chromium: https://chromium.googlesource.com/chromium/mini_chromium/+/9f129335dbe57ae9a3... BUG=chromium:638472 TEST=tail -F /var/log/chrome/chrome shows microsecond timestamps, like: [1:1:1123/185804.213359:VERBOSE1:zygote_main_linux.cc(599)] ZygoteMain: initializing 2 fork delegates R=dcheng NOPRESUBMIT=true Committed: https://crrev.com/543a3be1be43bf23fbca2140ad90d18ee7ec6655 Cr-Commit-Position: refs/heads/master@{#435254}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added Windows support #

Patch Set 3 : Fixed Win compile error #

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

Messages

Total messages: 38 (21 generated)
Mark Mentovai
https://codereview.chromium.org/2528613002/diff/1/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2528613002/diff/1/base/logging.cc#newcode768 base/logging.cc:768: struct timespec tp = {0}; No need to initialize ...
4 years ago (2016-11-23 14:33:06 UTC) #4
Daniel Kurtz
https://codereview.chromium.org/2528613002/diff/1/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2528613002/diff/1/base/logging.cc#newcode769 base/logging.cc:769: clock_gettime(CLOCK_REALTIME, &tp); On 2016/11/23 14:33:06, Mark Mentovai wrote: > ...
4 years ago (2016-11-23 16:31:03 UTC) #5
Mark Mentovai
Daniel Kurtz wrote: > https://codereview.chromium.org/2528613002/diff/1/base/logging.cc > File base/logging.cc (right): > > https://codereview.chromium.org/2528613002/diff/1/base/logging.cc#newcode769 > base/logging.cc:769: clock_gettime(CLOCK_REALTIME, ...
4 years ago (2016-11-23 16:39:24 UTC) #6
Daniel Kurtz
https://codereview.chromium.org/2528613002/diff/1/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/2528613002/diff/1/base/logging.cc#newcode769 base/logging.cc:769: clock_gettime(CLOCK_REALTIME, &tp); On 2016/11/23 14:33:06, Mark Mentovai wrote: > ...
4 years ago (2016-11-24 03:09:53 UTC) #8
Daniel Kurtz
On 2016/11/24 03:09:53, Daniel Kurtz wrote: > https://codereview.chromium.org/2528613002/diff/1/base/logging.cc > File base/logging.cc (right): > > https://codereview.chromium.org/2528613002/diff/1/base/logging.cc#newcode769 ...
4 years ago (2016-11-29 03:32:21 UTC) #16
Mark Mentovai
LGTM This only gives milliseconds on Windows, not microseconds. Revise the CL description to say ...
4 years ago (2016-11-29 18:53:36 UTC) #17
Daniel Kurtz
On 2016/11/29 18:53:36, Mark Mentovai wrote: > LGTM > > This only gives milliseconds on ...
4 years ago (2016-11-30 04:20:20 UTC) #19
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/2528613002/40001
4 years ago (2016-11-30 04:20:53 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-30 06:22:04 UTC) #23
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/2528613002/40001
4 years ago (2016-11-30 06:28:25 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/315129)
4 years ago (2016-11-30 07:51:47 UTC) #27
Daniel Kurtz
On 2016/11/30 07:51:47, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-11-30 08:15:09 UTC) #28
Mark Mentovai
On 2016/11/30 04:20:20, Daniel Kurtz wrote: > On 2016/11/29 18:53:36, Mark Mentovai wrote: > > ...
4 years ago (2016-11-30 11:35:21 UTC) #29
Mark Mentovai
On 2016/11/30 08:15:09, Daniel Kurtz wrote: > On 2016/11/30 07:51:47, commit-bot: I haz the power ...
4 years ago (2016-11-30 11:36:38 UTC) #30
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/2528613002/40001
4 years ago (2016-11-30 14:16:54 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-30 14:18:07 UTC) #36
commit-bot: I haz the power
4 years ago (2016-11-30 14:21:15 UTC) #38
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/543a3be1be43bf23fbca2140ad90d18ee7ec6655
Cr-Commit-Position: refs/heads/master@{#435254}

Powered by Google App Engine
This is Rietveld 408576698