DescriptionAdd 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 #
Messages
Total messages: 12 (0 generated)
|