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

Issue 1315463002: [Startup Tracing] Add --trace-config-file flag (Closed)

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

Description

[Startup Tracing] Add --trace-config-file flag This CL adds --trace-config-file flag. Please see trace_config_file.h for details. Design doc: https://docs.google.com/document/d/1PgdXUOJF3WtEmYWUyGRbC2Fz2ICCZKO9jPvpLPRSHH8/edit?usp=sharing BUG=317481, 482098 Committed: https://crrev.com/de52fb95509666be1062b50a78bea36adfbac183 Cr-Commit-Position: refs/heads/master@{#346062}

Patch Set 1 #

Total comments: 12

Patch Set 2 : review fix #

Total comments: 19

Patch Set 3 : review fix - sievers #

Patch Set 4 : review fix - msw #

Total comments: 2

Patch Set 5 : review fix - mojo & mandoline #

Patch Set 6 : review fix - blundell #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+588 lines, -143 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M components/tracing.gyp View 1 chunk +2 lines, -2 lines 0 comments Download
M components/tracing/BUILD.gn View 2 chunks +16 lines, -2 lines 0 comments Download
D components/tracing/startup_tracing.h View 1 chunk +0 lines, -20 lines 0 comments Download
D components/tracing/startup_tracing.cc View 1 chunk +0 lines, -66 lines 0 comments Download
A components/tracing/trace_config_file.h View 1 chunk +94 lines, -0 lines 0 comments Download
A components/tracing/trace_config_file.cc View 1 1 chunk +140 lines, -0 lines 0 comments Download
A components/tracing/trace_config_file_unittest.cc View 1 chunk +225 lines, -0 lines 0 comments Download
M components/tracing/tracing_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/tracing/tracing_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/tracing_nacl.gyp View 1 chunk +2 lines, -2 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M content/app/content_main_runner.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/browser_main_loop.h View 5 chunks +7 lines, -5 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 5 chunks +43 lines, -27 lines 2 comments Download
M content/browser/browser_main_runner.cc View 1 2 2 chunks +19 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M mandoline/app/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M mandoline/app/desktop/launcher_process.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M mojo/runner/desktop/launcher_process.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
Zhen Wang
ptal
5 years, 4 months ago (2015-08-24 04:53:08 UTC) #2
dsinclair
lgtm w/ nits. https://codereview.chromium.org/1315463002/diff/1/components/tracing/trace_config_file.cc File components/tracing/trace_config_file.cc (right): https://codereview.chromium.org/1315463002/diff/1/components/tracing/trace_config_file.cc#newcode18 components/tracing/trace_config_file.cc:18: nit: remove blank line https://codereview.chromium.org/1315463002/diff/1/components/tracing/trace_config_file.cc#newcode74 components/tracing/trace_config_file.cc:74: ...
5 years, 4 months ago (2015-08-24 15:04:50 UTC) #3
Zhen Wang
+blundell for components/BUILD.gn and components/components_tests.gyp +sievers for content/ +sky for mandoline/ and mojo/ cc primiano ...
5 years, 4 months ago (2015-08-24 16:39:25 UTC) #5
Primiano Tucci (use gerrit)
On 2015/08/24 16:39:25, Zhen Wang wrote: > cc primiano for memory infra startup/shutdown tracing Thanks ...
5 years, 4 months ago (2015-08-24 16:49:58 UTC) #6
no sievers
https://codereview.chromium.org/1315463002/diff/20001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1315463002/diff/20001/content/app/content_main_runner.cc#newcode635 content/app/content_main_runner.cc:635: base::trace_event::TraceLog::RECORDING_MODE); You're not really changing it, but do you ...
5 years, 4 months ago (2015-08-24 22:50:16 UTC) #7
blundell
Is this component really supposed to be built for iOS, which can't use //content or ...
5 years, 4 months ago (2015-08-25 08:23:50 UTC) #8
sky
sky->msw
5 years, 3 months ago (2015-08-25 16:11:56 UTC) #10
Zhen Wang
On 2015/08/25 08:23:50, blundell wrote: > Is this component really supposed to be built for ...
5 years, 3 months ago (2015-08-25 17:38:14 UTC) #11
dsinclair
On 2015/08/25 17:38:14, Zhen Wang wrote: > On 2015/08/25 08:23:50, blundell wrote: > > Is ...
5 years, 3 months ago (2015-08-25 17:43:08 UTC) #12
Zhen Wang
On 2015/08/25 17:43:08, dsinclair wrote: > On 2015/08/25 17:38:14, Zhen Wang wrote: > > On ...
5 years, 3 months ago (2015-08-25 17:46:11 UTC) #13
msw
https://codereview.chromium.org/1315463002/diff/20001/components/tracing/tracing_switches.cc File components/tracing/tracing_switches.cc (right): https://codereview.chromium.org/1315463002/diff/20001/components/tracing/tracing_switches.cc#newcode11 components/tracing/tracing_switches.cc:11: const char kTraceConfigFile[] = "trace-config-file"; nit: match the spacing ...
5 years, 3 months ago (2015-08-25 18:06:49 UTC) #14
Zhen Wang
https://codereview.chromium.org/1315463002/diff/20001/components/tracing/tracing_switches.cc File components/tracing/tracing_switches.cc (right): https://codereview.chromium.org/1315463002/diff/20001/components/tracing/tracing_switches.cc#newcode11 components/tracing/tracing_switches.cc:11: const char kTraceConfigFile[] = "trace-config-file"; On 2015/08/25 18:06:49, msw ...
5 years, 3 months ago (2015-08-25 18:18:37 UTC) #15
msw
mojo/* and mandoline/* lgtm with a nit. https://codereview.chromium.org/1315463002/diff/20001/content/app/android/library_loader_hooks.cc File content/app/android/library_loader_hooks.cc (right): https://codereview.chromium.org/1315463002/diff/20001/content/app/android/library_loader_hooks.cc#newcode97 content/app/android/library_loader_hooks.cc:97: if (tracing::TraceConfigFile::GetInstance()->IsEnabled()) ...
5 years, 3 months ago (2015-08-25 18:22:47 UTC) #16
Zhen Wang
blundell@, the startup tracing code (tracing:startup_tracing) in this CL only depends on //base. The changes ...
5 years, 3 months ago (2015-08-25 18:54:33 UTC) #17
blundell
On 2015/08/25 18:54:33, Zhen Wang wrote: > blundell@, the startup tracing code (tracing:startup_tracing) in this ...
5 years, 3 months ago (2015-08-26 16:58:14 UTC) #18
Zhen Wang
On 2015/08/26 16:58:14, blundell wrote: > On 2015/08/25 18:54:33, Zhen Wang wrote: > > blundell@, ...
5 years, 3 months ago (2015-08-26 18:28:52 UTC) #19
blundell
//components top-level lgtm
5 years, 3 months ago (2015-08-26 19:38:00 UTC) #20
Zhen Wang
ping sievers. :-)
5 years, 3 months ago (2015-08-27 16:48:28 UTC) #21
no sievers
lgtm https://codereview.chromium.org/1315463002/diff/100001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1315463002/diff/100001/content/browser/browser_main_loop.cc#newcode1342 content/browser/browser_main_loop.cc:1342: TracingControllerAndroid::GenerateTracingFilePath(&trace_file); Hmm so the filename from the trace ...
5 years, 3 months ago (2015-08-27 20:34:18 UTC) #22
Zhen Wang
sky@, do you mind stamping this CL for mojo/ since msw@ has lg2m it? https://codereview.chromium.org/1315463002/diff/100001/content/browser/browser_main_loop.cc ...
5 years, 3 months ago (2015-08-27 20:53:12 UTC) #23
sky
LGTM
5 years, 3 months ago (2015-08-27 23:17:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315463002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315463002/100001
5 years, 3 months ago (2015-08-28 00:41:21 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-08-28 03:07:25 UTC) #28
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/de52fb95509666be1062b50a78bea36adfbac183 Cr-Commit-Position: refs/heads/master@{#346062}
5 years, 3 months ago (2015-08-28 03:08:08 UTC) #29
sergeyv
5 years, 3 months ago (2015-08-28 03:32:45 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1319093002/ by sergeyv@chromium.org.

The reason for reverting is: Reason for the revert: broken compilation at
Win8/Win x64.

Failure example:
http://build.chromium.org/p/chromium.win/buildstatus?builder=Win%20x64%20GN&n....

Powered by Google App Engine
This is Rietveld 408576698