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

Issue 1177853003: [Startup Tracing] Enable startup tracing from config file (Closed)

Created:
5 years, 6 months ago by Zhen Wang
Modified:
5 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, erikwright+watch_chromium.org, jam, qsr+mojo_chromium.org, tracing+reviews_chromium.org, viettrungluu+watch_chromium.org, wfh+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Startup Tracing] Enable startup tracing from config file This CL adds a new way to enable startup tracing via Telemetry. Telemetry will put the config file to a known location. The browser can enable startup tracing according to the config file. The old way of using --trace-startup is still kept. Startup tracing design doc: https://docs.google.com/document/d/1yRCXhrQ-0rsfUgNHt9T4YdnmJYrXKN6aK56Ozk3kPVc/edit?usp=sharing BUG=317481, 482098 Committed: https://crrev.com/062a945213d8a029d3cc1ba239aa567f64971adf Cr-Commit-Position: refs/heads/master@{#335555}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 16

Patch Set 6 : review fix #

Patch Set 7 : more fix #

Patch Set 8 : Do not enable tracing in Zygote process #

Patch Set 9 : review fix #

Total comments: 2

Patch Set 10 : move to components/ #

Patch Set 11 : change .chrome-telemetry to .config and some nit fix #

Patch Set 12 : add startup tracing to mojo common BUILD.gn #

Total comments: 5

Patch Set 13 : review fix #

Total comments: 2

Patch Set 14 : reorder in content/app/DEPS #

Total comments: 2

Patch Set 15 : rebase #

Total comments: 5

Patch Set 16 : update mojo/mandoline BUILD.gn #

Patch Set 17 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -0 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/tracing.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/tracing/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
A components/tracing/startup_tracing.h View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
A components/tracing/startup_tracing.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +66 lines, -0 lines 0 comments Download
M components/tracing_nacl.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/app/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M content/child/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M mandoline/app/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M mandoline/app/desktop/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M mandoline/app/desktop/launcher_process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M mojo/runner/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M mojo/runner/desktop/launcher_process.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (12 generated)
Zhen Wang
ptal
5 years, 6 months ago (2015-06-11 05:50:21 UTC) #2
dsinclair
https://codereview.chromium.org/1177853003/diff/60001/base/trace_event/startup_tracing.cc File base/trace_event/startup_tracing.cc (right): https://codereview.chromium.org/1177853003/diff/60001/base/trace_event/startup_tracing.cc#newcode18 base/trace_event/startup_tracing.cc:18: // - Android: /data/local/chrome-trace-config.json Why not /data/local/chrome-telemetry/chrome-tracing-config.json seems a ...
5 years, 6 months ago (2015-06-11 14:37:09 UTC) #3
Zhen Wang
Do you know how to fix the build failure on linux_chromium_gn_dbg? I suspect that nacl ...
5 years, 6 months ago (2015-06-12 01:26:06 UTC) #5
dsinclair
>Do you know how to fix the build failure on linux_chromium_gn_dbg? I suspect that nacl ...
5 years, 6 months ago (2015-06-12 14:04:15 UTC) #6
Zhen Wang
> >Do you know how to fix the build failure on linux_chromium_gn_dbg? I suspect > ...
5 years, 6 months ago (2015-06-12 15:41:34 UTC) #7
dsinclair
On 2015/06/12 15:41:34, Zhen Wang wrote: > > >Do you know how to fix the ...
5 years, 6 months ago (2015-06-12 15:44:55 UTC) #8
Zhen Wang
On 2015/06/12 15:44:55, dsinclair wrote: > On 2015/06/12 15:41:34, Zhen Wang wrote: > > > ...
5 years, 6 months ago (2015-06-12 16:04:16 UTC) #9
dsinclair
On 2015/06/12 16:04:16, Zhen Wang wrote: > On 2015/06/12 15:44:55, dsinclair wrote: > > On ...
5 years, 6 months ago (2015-06-12 17:06:03 UTC) #10
nednguyen
https://codereview.chromium.org/1177853003/diff/140001/base/trace_event/startup_tracing.cc File base/trace_event/startup_tracing.cc (right): https://codereview.chromium.org/1177853003/diff/140001/base/trace_event/startup_tracing.cc#newcode20 base/trace_event/startup_tracing.cc:20: // - Win: %USERPROFILE%/.chrome-telemetry/chrome-trace-config.json I am not sure whether ...
5 years, 6 months ago (2015-06-12 20:12:18 UTC) #11
Zhen Wang
I have moved the files to components/. ptal https://codereview.chromium.org/1177853003/diff/140001/base/trace_event/startup_tracing.cc File base/trace_event/startup_tracing.cc (right): https://codereview.chromium.org/1177853003/diff/140001/base/trace_event/startup_tracing.cc#newcode20 base/trace_event/startup_tracing.cc:20: // ...
5 years, 6 months ago (2015-06-13 03:48:03 UTC) #12
dsinclair
https://codereview.chromium.org/1177853003/diff/200001/components/tracing/startup_tracing.cc File components/tracing/startup_tracing.cc (right): https://codereview.chromium.org/1177853003/diff/200001/components/tracing/startup_tracing.cc#newcode48 components/tracing/startup_tracing.cc:48: if (trace_config_file_path.empty() This can never be empty given the ...
5 years, 6 months ago (2015-06-15 13:49:45 UTC) #13
nednguyen
How do we usually add test for this kind of functionality? https://codereview.chromium.org/1177853003/diff/200001/components/tracing/startup_tracing.cc File components/tracing/startup_tracing.cc (right): ...
5 years, 6 months ago (2015-06-15 15:03:39 UTC) #14
Zhen Wang
https://codereview.chromium.org/1177853003/diff/200001/components/tracing/startup_tracing.cc File components/tracing/startup_tracing.cc (right): https://codereview.chromium.org/1177853003/diff/200001/components/tracing/startup_tracing.cc#newcode48 components/tracing/startup_tracing.cc:48: if (trace_config_file_path.empty() On 2015/06/15 13:49:45, dsinclair wrote: > This ...
5 years, 6 months ago (2015-06-15 16:58:30 UTC) #15
dsinclair
lgtm
5 years, 6 months ago (2015-06-15 19:27:12 UTC) #16
Zhen Wang
+erikwright for components/ +sievers for content/ +sky for mojo/ and mandoline/ ptal :-)
5 years, 6 months ago (2015-06-15 20:08:37 UTC) #17
Zhen Wang
+erikwright for components/ +sievers for content/ +sky for mojo/ and mandoline/ ptal :-)
5 years, 6 months ago (2015-06-15 20:12:14 UTC) #19
no sievers
+jam to double-check the content->component dependency. Looks like content/child and common also depend on tracing ...
5 years, 6 months ago (2015-06-15 21:44:01 UTC) #21
Zhen Wang
https://codereview.chromium.org/1177853003/diff/220001/content/app/DEPS File content/app/DEPS (right): https://codereview.chromium.org/1177853003/diff/220001/content/app/DEPS#newcode3 content/app/DEPS:3: "+components/tracing/startup_tracing.h", On 2015/06/15 21:44:01, sievers wrote: > nit: order ...
5 years, 6 months ago (2015-06-15 22:09:11 UTC) #22
sky
+yuzhu as he's been looking at telemetry How does this relate to the tracking mojo ...
5 years, 6 months ago (2015-06-15 22:24:55 UTC) #24
Zhen Wang
On 2015/06/15 22:24:55, sky wrote: > +yuzhu as he's been looking at telemetry > How ...
5 years, 6 months ago (2015-06-15 22:29:17 UTC) #25
sky
On Mon, Jun 15, 2015 at 3:29 PM, <zhenw@chromium.org> wrote: > On 2015/06/15 22:24:55, sky ...
5 years, 6 months ago (2015-06-16 00:04:30 UTC) #26
Zhen Wang
On 2015/06/16 00:04:30, sky wrote: > On Mon, Jun 15, 2015 at 3:29 PM, <mailto:zhenw@chromium.org> ...
5 years, 6 months ago (2015-06-16 15:13:25 UTC) #27
erikwright (departed)
Please use a more specific owner for components/tracing and the gyp/gn files in components. Specifically ...
5 years, 6 months ago (2015-06-16 15:24:28 UTC) #29
erikwright (departed)
components/BUILD.gn LGTM
5 years, 6 months ago (2015-06-16 15:25:57 UTC) #31
Zhen Wang
+nduca for /components/tracing/
5 years, 6 months ago (2015-06-16 16:15:50 UTC) #33
yzshen1
Thanks for pointing me to this CL, Scott. Yes. Telemetry needs tracing support. It is ...
5 years, 6 months ago (2015-06-16 23:44:58 UTC) #34
Zhen Wang
https://codereview.chromium.org/1177853003/diff/230001/mojo/runner/desktop/launcher_process.cc File mojo/runner/desktop/launcher_process.cc (right): https://codereview.chromium.org/1177853003/diff/230001/mojo/runner/desktop/launcher_process.cc#newcode92 mojo/runner/desktop/launcher_process.cc:92: tracing::EnableStartupTracingIfConfigFileExists(); On 2015/06/16 23:44:58, yzshen1 wrote: > I haven't ...
5 years, 6 months ago (2015-06-16 23:49:00 UTC) #35
yzshen1
On 2015/06/16 23:49:00, Zhen Wang wrote: > https://codereview.chromium.org/1177853003/diff/230001/mojo/runner/desktop/launcher_process.cc > File mojo/runner/desktop/launcher_process.cc (right): > > https://codereview.chromium.org/1177853003/diff/230001/mojo/runner/desktop/launcher_process.cc#newcode92 ...
5 years, 6 months ago (2015-06-16 23:50:44 UTC) #36
jam
lgtm
5 years, 6 months ago (2015-06-18 21:36:45 UTC) #37
Zhen Wang
- sievers@, can you double check content/ since jam@ has lg2m it? - sky@, can ...
5 years, 6 months ago (2015-06-18 22:06:19 UTC) #38
sky
https://codereview.chromium.org/1177853003/diff/250001/mandoline/app/desktop/launcher_process.cc File mandoline/app/desktop/launcher_process.cc (right): https://codereview.chromium.org/1177853003/diff/250001/mandoline/app/desktop/launcher_process.cc#newcode95 mandoline/app/desktop/launcher_process.cc:95: tracing::EnableStartupTracingIfConfigFileExists(); Don't you need to update BUILD.gn for the ...
5 years, 6 months ago (2015-06-18 22:18:16 UTC) #39
Zhen Wang
https://codereview.chromium.org/1177853003/diff/250001/mojo/common/BUILD.gn File mojo/common/BUILD.gn (right): https://codereview.chromium.org/1177853003/diff/250001/mojo/common/BUILD.gn#newcode42 mojo/common/BUILD.gn:42: "//components/tracing:startup_tracing", On 2015/06/18 22:18:16, sky wrote: > This isn't ...
5 years, 6 months ago (2015-06-18 22:37:59 UTC) #40
no sievers
On 2015/06/18 22:06:19, Zhen Wang wrote: > - sievers@, can you double check content/ since ...
5 years, 6 months ago (2015-06-18 23:21:46 UTC) #41
sky
https://codereview.chromium.org/1177853003/diff/250001/mojo/common/BUILD.gn File mojo/common/BUILD.gn (right): https://codereview.chromium.org/1177853003/diff/250001/mojo/common/BUILD.gn#newcode42 mojo/common/BUILD.gn:42: "//components/tracing:startup_tracing", On 2015/06/18 22:37:58, Zhen Wang wrote: > On ...
5 years, 6 months ago (2015-06-18 23:43:08 UTC) #42
Zhen Wang
https://codereview.chromium.org/1177853003/diff/250001/mojo/common/BUILD.gn File mojo/common/BUILD.gn (right): https://codereview.chromium.org/1177853003/diff/250001/mojo/common/BUILD.gn#newcode42 mojo/common/BUILD.gn:42: "//components/tracing:startup_tracing", On 2015/06/18 23:43:08, sky wrote: > On 2015/06/18 ...
5 years, 6 months ago (2015-06-19 03:26:11 UTC) #43
sky
LGTM
5 years, 6 months ago (2015-06-19 03:55:52 UTC) #44
nduca
rubberstamplgtm
5 years, 6 months ago (2015-06-22 16:46:10 UTC) #45
nduca
@#$)(@)* lgtm
5 years, 6 months ago (2015-06-22 16:46:25 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177853003/290001
5 years, 6 months ago (2015-06-22 16:48:49 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/22787)
5 years, 6 months ago (2015-06-22 17:04:51 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177853003/290001
5 years, 6 months ago (2015-06-22 20:48:49 UTC) #53
commit-bot: I haz the power
Committed patchset #17 (id:290001)
5 years, 6 months ago (2015-06-22 20:55:40 UTC) #54
commit-bot: I haz the power
5 years, 6 months ago (2015-06-22 20:56:36 UTC) #55
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/062a945213d8a029d3cc1ba239aa567f64971adf
Cr-Commit-Position: refs/heads/master@{#335555}

Powered by Google App Engine
This is Rietveld 408576698