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

Issue 10257020: Add interface to system trace clock. (Closed)

Created:
8 years, 8 months ago by Sam Leffler
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Add interface to system trace clock. Add TimeTicks::NowFromSystemTraceTime to return the current system trace event clock (falling back to TimeTicks::HighResNow when not supported). On systems where the system trace clock is available this allows system and chrome events to be stamped with a common clock (eliminating post-processing time shift adjustment that can be hard). BUG=chromium-os:27809 TEST=unit tests + collect trace data on chrome os w/ kernel that supports clock_gettime(CLOCK_SYSTEM_TRACE) Change-Id: Ia6a500bd13a6f09c49052a1dd1421027960d8dea Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134772

Patch Set 1 #

Total comments: 10

Patch Set 2 : add to comment #

Patch Set 3 : consolidate high res clock unit test code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M base/debug/trace_event_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/time.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M base/time_mac.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M base/time_posix.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M base/time_unittest.cc View 1 2 3 chunks +12 lines, -3 lines 0 comments Download
M base/time_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Sam Leffler
8 years, 8 months ago (2012-04-27 22:05:13 UTC) #1
nduca
I'm fine with this. +jbates for review.
8 years, 8 months ago (2012-04-27 22:14:10 UTC) #2
jbates
LGTM
8 years, 8 months ago (2012-04-27 22:18:52 UTC) #3
jar (doing other things)
...a few questions and suggestions. http://codereview.chromium.org/10257020/diff/1/base/time.h File base/time.h (right): http://codereview.chromium.org/10257020/diff/1/base/time.h#newcode489 base/time.h:489: // collected outside. What ...
8 years, 8 months ago (2012-04-27 22:50:18 UTC) #4
Sam Leffler
http://codereview.chromium.org/10257020/diff/1/base/time.h File base/time.h (right): http://codereview.chromium.org/10257020/diff/1/base/time.h#newcode489 base/time.h:489: // collected outside. Anything outside chrome the application. Events ...
8 years, 8 months ago (2012-04-27 22:56:07 UTC) #5
jar (doing other things)
http://codereview.chromium.org/10257020/diff/1/base/time_unittest.cc File base/time_unittest.cc (right): http://codereview.chromium.org/10257020/diff/1/base/time_unittest.cc#newcode522 base/time_unittest.cc:522: const int kTargetGranularityUs = 15000; // 15ms On 2012/04/27 ...
8 years, 7 months ago (2012-04-30 22:05:57 UTC) #6
Sam Leffler
PTAL http://codereview.chromium.org/10257020/diff/1/base/time_unittest.cc File base/time_unittest.cc (right): http://codereview.chromium.org/10257020/diff/1/base/time_unittest.cc#newcode522 base/time_unittest.cc:522: const int kTargetGranularityUs = 15000; // 15ms On ...
8 years, 7 months ago (2012-04-30 22:47:58 UTC) #7
jar (doing other things)
lgtm
8 years, 7 months ago (2012-05-01 18:01:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sleffler@chromium.org/10257020/12002
8 years, 7 months ago (2012-05-01 18:01:40 UTC) #9
commit-bot: I haz the power
Try job failure for 10257020-12002 (retry) on win_rel for step "update". It's a second try, ...
8 years, 7 months ago (2012-05-01 18:26:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sleffler@chromium.org/10257020/12002
8 years, 7 months ago (2012-05-01 18:54:57 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 20:57:10 UTC) #12
Change committed as 134772

Powered by Google App Engine
This is Rietveld 408576698