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

Issue 2683913002: Enable startup tracing from command line flags in components/tracing (Closed)

Created:
3 years, 10 months ago by ssid
Modified:
3 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, jam, pfeldman, tracing+reviews_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable startup tracing from command line flags in components/tracing This CL does: 1. Move the code that enables TraceLog early into components/tracing/common. This code is executed in all processes and duplicated in multiple locations. 2. Move TraceConfigFile into components/tracing/common since this code is used in all processes except renderer and zygote. 3. Enable heap profiling in trace_startup. BUG=609912 Review-Url: https://codereview.chromium.org/2683913002 Cr-Commit-Position: refs/heads/master@{#450956} Committed: https://chromium.googlesource.com/chromium/src/+/69e8419f8d98ee886c1f7b34413ab97d6237cba9

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : Rename. #

Total comments: 4

Patch Set 3 : Remove command line arg. #

Total comments: 2

Patch Set 4 : Comment about utility process #

Patch Set 5 : fix comment. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -593 lines) Patch
M base/trace_event/memory_dump_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/tracing/BUILD.gn View 1 2 chunks +5 lines, -3 lines 0 comments Download
D components/tracing/browser/trace_config_file.h View 1 chunk +0 lines, -97 lines 0 comments Download
D components/tracing/browser/trace_config_file.cc View 1 chunk +0 lines, -147 lines 0 comments Download
D components/tracing/browser/trace_config_file_unittest.cc View 1 chunk +0 lines, -250 lines 0 comments Download
A + components/tracing/common/trace_config_file.h View 3 chunks +5 lines, -4 lines 0 comments Download
A + components/tracing/common/trace_config_file.cc View 4 chunks +5 lines, -6 lines 0 comments Download
A + components/tracing/common/trace_config_file_unittest.cc View 9 chunks +26 lines, -26 lines 0 comments Download
A components/tracing/common/trace_startup.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A components/tracing/common/trace_startup.cc View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 2 chunks +2 lines, -25 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 2 chunks +7 lines, -28 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_main_runner.cc View 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/devtools/protocol/tracing_handler.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 68 (41 generated)
ssid
ptal thanks.
3 years, 10 months ago (2017-02-08 02:04:15 UTC) #4
ssid
@Zhen ping.
3 years, 10 months ago (2017-02-10 19:02:53 UTC) #8
Zhen Wang
https://codereview.chromium.org/2683913002/diff/20001/components/tracing/common/startup_command_parser.cc File components/tracing/common/startup_command_parser.cc (right): https://codereview.chromium.org/2683913002/diff/20001/components/tracing/common/startup_command_parser.cc#newcode16 components/tracing/common/startup_command_parser.cc:16: void ParseStartupTraceCommands(const base::CommandLine& command_line, This function name does not ...
3 years, 10 months ago (2017-02-10 19:56:01 UTC) #9
ssid
https://codereview.chromium.org/2683913002/diff/20001/components/tracing/common/startup_command_parser.cc File components/tracing/common/startup_command_parser.cc (right): https://codereview.chromium.org/2683913002/diff/20001/components/tracing/common/startup_command_parser.cc#newcode16 components/tracing/common/startup_command_parser.cc:16: void ParseStartupTraceCommands(const base::CommandLine& command_line, On 2017/02/10 19:56:01, Zhen Wang ...
3 years, 10 months ago (2017-02-11 01:14:17 UTC) #10
ssid
+Oystein for tracing/ changes.
3 years, 10 months ago (2017-02-11 01:15:03 UTC) #12
Zhen Wang
lgtm
3 years, 10 months ago (2017-02-14 17:15:37 UTC) #13
Zhen Wang
nit: you need to update the CL description for the file name change.
3 years, 10 months ago (2017-02-14 17:16:10 UTC) #14
ssid
@Oystein ping
3 years, 10 months ago (2017-02-14 19:16:52 UTC) #16
oystein (OOO til 10th of July)
https://codereview.chromium.org/2683913002/diff/40001/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/2683913002/diff/40001/base/trace_event/memory_dump_manager.h#newcode121 base/trace_event/memory_dump_manager.h:121: void EnableHeapProfilingIfNeeded(); Does this still need to be called ...
3 years, 10 months ago (2017-02-14 19:42:10 UTC) #17
oystein (OOO til 10th of July)
On 2017/02/14 at 19:42:10, oystein wrote: > https://codereview.chromium.org/2683913002/diff/40001/base/trace_event/memory_dump_manager.h > File base/trace_event/memory_dump_manager.h (right): > > https://codereview.chromium.org/2683913002/diff/40001/base/trace_event/memory_dump_manager.h#newcode121 ...
3 years, 10 months ago (2017-02-14 19:46:20 UTC) #18
ssid
> Also FYI https://codereview.chromium.org/2695013005/, should ping that CL if > this one lands first. Will ...
3 years, 10 months ago (2017-02-14 19:58:54 UTC) #19
oystein (OOO til 10th of July)
On 2017/02/14 at 19:58:54, ssid wrote: > > Also FYI https://codereview.chromium.org/2695013005/, should ping that CL ...
3 years, 10 months ago (2017-02-14 22:00:46 UTC) #20
ssid
On 2017/02/14 22:00:46, oystein wrote: > On 2017/02/14 at 19:58:54, ssid wrote: > > > ...
3 years, 10 months ago (2017-02-14 22:11:12 UTC) #21
ssid
+avi: Ptal at the changes in content/. Thanks
3 years, 10 months ago (2017-02-14 22:18:24 UTC) #23
Primiano Tucci (use gerrit)
LGTM with a comment. Agree with oysteine that having a browsertest here, if there is ...
3 years, 10 months ago (2017-02-15 15:33:34 UTC) #24
ssid
+nasco since Avi is OOO. Ptal at content/ changes. Only functional change is called EnableHeapProfiling ...
3 years, 10 months ago (2017-02-15 18:29:14 UTC) #26
ssid
https://codereview.chromium.org/2683913002/diff/40001/components/tracing/common/trace_startup.h File components/tracing/common/trace_startup.h (right): https://codereview.chromium.org/2683913002/diff/40001/components/tracing/common/trace_startup.h#newcode17 components/tracing/common/trace_startup.h:17: EnableStartupTracingIfNeeded(const base::CommandLine& command_line, On 2017/02/15 15:33:34, Primiano Tucci wrote: ...
3 years, 10 months ago (2017-02-15 18:35:34 UTC) #27
nasko
content/ LGTM with a question. https://codereview.chromium.org/2683913002/diff/80001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/2683913002/diff/80001/content/app/content_main_runner.cc#newcode612 content/app/content_main_runner.cc:612: // cannot access the ...
3 years, 10 months ago (2017-02-15 19:18:58 UTC) #28
ssid
Thanks. Zhen, do you have any idea about Utility process? https://codereview.chromium.org/2683913002/diff/80001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/2683913002/diff/80001/content/app/content_main_runner.cc#newcode612 ...
3 years, 10 months ago (2017-02-15 19:41:34 UTC) #29
ssid
-Avi
3 years, 10 months ago (2017-02-15 19:42:05 UTC) #31
nasko
On 2017/02/15 19:41:34, ssid wrote: > Thanks. Zhen, do you have any idea about Utility ...
3 years, 10 months ago (2017-02-15 19:51:25 UTC) #34
ssid
On 2017/02/15 19:51:25, nasko wrote: > On 2017/02/15 19:41:34, ssid wrote: > > Thanks. Zhen, ...
3 years, 10 months ago (2017-02-15 20:04:55 UTC) #35
nasko
On 2017/02/15 20:04:55, ssid wrote: > On 2017/02/15 19:51:25, nasko wrote: > > On 2017/02/15 ...
3 years, 10 months ago (2017-02-15 21:47:28 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2683913002/140001
3 years, 10 months ago (2017-02-16 02:46:13 UTC) #51
commit-bot: I haz the power
Failed to apply patch for content/app/content_main_runner.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-16 03:43:09 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2683913002/220001
3 years, 10 months ago (2017-02-16 14:28:37 UTC) #65
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 14:34:55 UTC) #68
Message was sent while issue was closed.
Committed patchset #6 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/69e8419f8d98ee886c1f7b34413a...

Powered by Google App Engine
This is Rietveld 408576698