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

Issue 2937133002: Launch browser when --memlog is specified on the command line. (Closed)

Created:
3 years, 6 months ago by brettw
Modified:
3 years, 6 months ago
Reviewers:
Boris Vidolov, awong
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Launch browser when --memlog is specified on the command line. This communicates a pipe name to the launched process which is propagated to child processes. It is not yet used. The current process topology is the profiling process launches the browser which then runs like normal. In a later pass I will change this to have the browser process launch the profiling process when the flag is set. I believe this topology will be required for certain platforms. But it will require more plumbing for "process hosts" and mojo pipes that will take more time and don't need to block the current work. BUG=733336 R=ajwong@chromium.org, borisv@chromium.org Review-Url: https://codereview.chromium.org/2937133002 . Cr-Commit-Position: refs/heads/master@{#479754} Committed: https://chromium.googlesource.com/chromium/src/+/1664378033de651755a3b4e46ec9690600dc8873

Patch Set 1 #

Patch Set 2 : Format #

Total comments: 6

Patch Set 3 : Fixes #

Patch Set 4 : Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -4 lines) Patch
M chrome/app/chrome_main.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/profiling/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/profiling/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/profiling/profiling_globals.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/profiling/profiling_globals.cc View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/profiling/profiling_main.cc View 1 2 chunks +87 lines, -1 line 0 comments Download

Messages

Total messages: 22 (12 generated)
brettw
3 years, 6 months ago (2017-06-14 23:05:21 UTC) #2
awong
https://codereview.chromium.org/2937133002/diff/20001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/2937133002/diff/20001/chrome/common/chrome_switches.cc#newcode1134 chrome/common/chrome_switches.cc:1134: const char kMemlog[] = "memlog"; should these be constexprs ...
3 years, 6 months ago (2017-06-14 23:15:19 UTC) #9
awong
LGTM enough for initial commit. We can continue to correct as we go. On 2017/06/14 ...
3 years, 6 months ago (2017-06-14 23:15:59 UTC) #10
brettw
https://codereview.chromium.org/2937133002/diff/20001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/2937133002/diff/20001/chrome/common/chrome_switches.cc#newcode1134 chrome/common/chrome_switches.cc:1134: const char kMemlog[] = "memlog"; I don't think so, ...
3 years, 6 months ago (2017-06-14 23:23:55 UTC) #11
Boris Vidolov
lgtm lgtm
3 years, 6 months ago (2017-06-14 23:56:15 UTC) #12
brettw
Fix
3 years, 6 months ago (2017-06-14 23:56:31 UTC) #13
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/2937133002/60001
3 years, 6 months ago (2017-06-15 03:50:43 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/479317)
3 years, 6 months ago (2017-06-15 05:26:47 UTC) #18
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/2937133002/60001
3 years, 6 months ago (2017-06-15 15:55:16 UTC) #20
brettw
3 years, 6 months ago (2017-06-15 18:01:39 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
1664378033de651755a3b4e46ec9690600dc8873 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698