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

Issue 1374753004: Makes TraceTicks use the monotonic timer on Chrome OS (Closed)

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

Description

Makes TraceTicks use the monotonic timer on Chrome OS This is the end result of an effort to eliminate the need for TraceTicks to be based on the ftrace clock on Chrome OS. Chrome tracing began using the ftrace clock so that we could correlate what was happening in Chrome (recorded in Chrome traces and thus based on TraceTicks) with what was happening inside of the ChromeOS kernel (and thus based on the ftrace clock). Having this end-to-end view of performance was necessary for full-stack debugging on Chrome OS. However, a May 2015 Linux patch (https://goo.gl/2Or7DF) added the ability to use the monotonic clock as the source for timestamps within ftrace. This allows us to use the monotonic clock for ftrace and thus have the benefits of having consistent timestamps in our Chrome-level and kernel-level tracing tools, without the cost of having to carry around timestamps from two different sources within Chrome (the monotonic clock for TimeTicks and the ftrace clock for TraceTicks). sonnyrao@ graciously volunteered to backport this Linux patch to major past versions of Chrome OS, paving the way for this patch which finally starts using the monotonic timer for TraceTicks on Chrome OS. He's ready to submit the second side of this CL which tells ftrace to start using the monotonic clock as soon as this one gets DEPS rolled into ChromeOS (sometime tomorrow morning). The one down-side to all of this is that, once sonnyrao@ completes the backports and this patch is submitted, developers with the latest version of Chrome but with a version of ChromeOS that is not within the most recent 5 versions will have ftrace timestamps that do not match Chrome tracing timestamps. This shouldn't cause any functional problems, but it will make it harder to get a full picture of Chrome's performance down to the kernel level. BUG=541692 Committed: https://crrev.com/b164c0482b31fa65e803e03d392da9905de051cb Cr-Commit-Position: refs/heads/master@{#355650}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -16 lines) Patch
M base/time/time_posix.cc View 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
charliea (OOO until 10-5)
5 years, 2 months ago (2015-09-30 21:15:39 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374753004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374753004/1
5 years, 2 months ago (2015-10-01 11:41:21 UTC) #4
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 2 months ago (2015-10-01 11:41:23 UTC) #6
nduca
have we patched the dbus endpoint of the systrace integration for chromeos to change which ...
5 years, 2 months ago (2015-10-01 15:41:25 UTC) #7
charliea (OOO until 10-5)
On 2015/10/01 15:41:25, nduca wrote: > have we patched the dbus endpoint of the systrace ...
5 years, 2 months ago (2015-10-01 16:09:14 UTC) #8
charliea (OOO until 10-5)
I talked to sonnyrao@, and he said that the evidence suggests that the usage isn't ...
5 years, 2 months ago (2015-10-19 20:48:17 UTC) #9
charliea (OOO until 10-5)
On 2015/10/19 20:48:17, charliea wrote: > I talked to sonnyrao@, and he said that the ...
5 years, 2 months ago (2015-10-19 21:15:23 UTC) #10
nduca
lgtm. is the follwoup bug to remove the traceticks method entirely? do we have a ...
5 years, 2 months ago (2015-10-19 23:05:28 UTC) #11
charliea (OOO until 10-5)
On 2015/10/19 23:05:28, nduca wrote: > lgtm. is the follwoup bug to remove the traceticks ...
5 years, 2 months ago (2015-10-22 19:32:42 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374753004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374753004/1
5 years, 2 months ago (2015-10-22 19:35:13 UTC) #15
commit-bot: I haz the power
Dry run: 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/111921)
5 years, 2 months ago (2015-10-22 19:46:43 UTC) #17
charliea (OOO until 10-5)
5 years, 2 months ago (2015-10-22 21:39:53 UTC) #21
Lei Zhang
Seems reasonable, rs lgtm
5 years, 2 months ago (2015-10-22 21:42:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374753004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374753004/1
5 years, 2 months ago (2015-10-22 21:45:43 UTC) #26
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-10-22 21:49:41 UTC) #27
commit-bot: I haz the power
5 years, 2 months ago (2015-10-22 21:50:39 UTC) #28
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b164c0482b31fa65e803e03d392da9905de051cb
Cr-Commit-Position: refs/heads/master@{#355650}

Powered by Google App Engine
This is Rietveld 408576698