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

Issue 879853002: Add a --startup option to generate combined traces for startup. (Closed)

Created:
5 years, 10 months ago by Benoit L
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add profile_chrome_startup.py to generate combined traces for startup. This is done following a suggestion in https://codereview.chromium.org/686413002/. BUG=361548 Committed: https://crrev.com/477e91f0a79fef8e766d07f228e67b645509e0c4 Cr-Commit-Position: refs/heads/master@{#313499}

Patch Set 1 #

Patch Set 2 : Make the tracing work with chrome_shell. #

Total comments: 16

Patch Set 3 : Address comments. #

Total comments: 2

Patch Set 4 : Make startup tracing into a separate tool. #

Total comments: 21

Patch Set 5 : Address comments and add a test. #

Patch Set 6 : Typo. #

Total comments: 9

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -16 lines) Patch
A tools/profile_chrome/chrome_startup_controller.py View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
A tools/profile_chrome/chrome_startup_controller_unittest.py View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M tools/profile_chrome/controllers_unittest.py View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A tools/profile_chrome/flags.py View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M tools/profile_chrome/main.py View 1 2 3 3 chunks +3 lines, -16 lines 0 comments Download
A tools/profile_chrome_startup.py View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
Benoit L
Hello, This is a small patch to have combined startup traces properly integrated into the ...
5 years, 10 months ago (2015-01-27 09:50:11 UTC) #2
pasko
https://codereview.chromium.org/879853002/diff/20001/tools/profile_chrome/chrome_controller.py File tools/profile_chrome/chrome_controller.py (right): https://codereview.chromium.org/879853002/diff/20001/tools/profile_chrome/chrome_controller.py#newcode82 tools/profile_chrome/chrome_controller.py:82: data='http://www.google.com/', so we are starting chrome right after we ...
5 years, 10 months ago (2015-01-27 12:59:00 UTC) #4
Sami
Thanks for the patch. I'm wondering if we should separate this out a little more ...
5 years, 10 months ago (2015-01-27 13:15:48 UTC) #5
Benoit L
Thank you both for the reviews. I can separate it into another executable. However, I ...
5 years, 10 months ago (2015-01-27 13:50:26 UTC) #6
Sami
Thanks. On 2015/01/27 13:50:26, lizeb wrote: > Thank you both for the reviews. > > ...
5 years, 10 months ago (2015-01-27 14:19:55 UTC) #7
pasko
I am in slight preference of adb_profile_chrome --startup if all flag incompatibilities are checked in ...
5 years, 10 months ago (2015-01-27 14:25:32 UTC) #8
Sami
On 2015/01/27 14:25:32, pasko wrote: > I am in slight preference of adb_profile_chrome --startup if ...
5 years, 10 months ago (2015-01-27 15:07:09 UTC) #9
pasko-google - do not use
On 2015/01/27 15:07:09, Sami wrote: > On 2015/01/27 14:25:32, pasko wrote: > > I am ...
5 years, 10 months ago (2015-01-27 15:19:33 UTC) #10
pasko-google - do not use
On 2015/01/27 15:19:33, pasko-google - do not use wrote: > > One more factor here ...
5 years, 10 months ago (2015-01-27 15:20:41 UTC) #11
pasko-google - do not use
https://codereview.chromium.org/879853002/diff/40001/tools/profile_chrome/chrome_controller.py File tools/profile_chrome/chrome_controller.py (right): https://codereview.chromium.org/879853002/diff/40001/tools/profile_chrome/chrome_controller.py#newcode78 tools/profile_chrome/chrome_controller.py:78: adb.RunShellCommand('echo 1 > /proc/vm/drop_caches') There is cache_control.DropRamCaches, which also ...
5 years, 10 months ago (2015-01-27 15:20:53 UTC) #13
Benoit L
Hello, As agreed, I have separated the tool into a separate adb_profile_chrome_startup.py. Also, it is ...
5 years, 10 months ago (2015-01-27 16:31:33 UTC) #14
pasko
https://codereview.chromium.org/879853002/diff/60001/build/android/adb_profile_chrome_startup File build/android/adb_profile_chrome_startup (right): https://codereview.chromium.org/879853002/diff/60001/build/android/adb_profile_chrome_startup#newcode8 build/android/adb_profile_chrome_startup:8: exec $(dirname $0)/../../tools/profile_chrome_startup.py $@ to properly handle spaces in ...
5 years, 10 months ago (2015-01-27 17:00:24 UTC) #15
pasko
I mean, overall looks good, of course
5 years, 10 months ago (2015-01-27 17:01:30 UTC) #16
Sami
Thanks, I think this looks much better this way. https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome_startup.py File tools/profile_chrome_startup.py (right): https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome_startup.py#newcode28 tools/profile_chrome_startup.py:28: ...
5 years, 10 months ago (2015-01-27 17:08:33 UTC) #17
Benoit L
All done. I've added a test (so code has moved again), and it passes (as ...
5 years, 10 months ago (2015-01-27 18:41:43 UTC) #18
Sami
Thanks, lgtm with a handful of nits. https://codereview.chromium.org/879853002/diff/100001/tools/profile_chrome/chrome_startup_controller_unittest.py File tools/profile_chrome/chrome_startup_controller_unittest.py (right): https://codereview.chromium.org/879853002/diff/100001/tools/profile_chrome/chrome_startup_controller_unittest.py#newcode14 tools/profile_chrome/chrome_startup_controller_unittest.py:14: categories = ...
5 years, 10 months ago (2015-01-28 09:21:49 UTC) #19
pasko
lgtm with a few TODOs and a tiny bash fix thanks!! https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome/main.py File tools/profile_chrome/main.py (right): ...
5 years, 10 months ago (2015-01-28 12:26:04 UTC) #20
Sami
https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome_startup.py File tools/profile_chrome_startup.py (right): https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome_startup.py#newcode59 tools/profile_chrome_startup.py:59: def StopTracing(self): On 2015/01/28 12:26:03, pasko wrote: > So, ...
5 years, 10 months ago (2015-01-28 12:44:14 UTC) #21
pasko
https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome_startup.py File tools/profile_chrome_startup.py (right): https://codereview.chromium.org/879853002/diff/60001/tools/profile_chrome_startup.py#newcode59 tools/profile_chrome_startup.py:59: def StopTracing(self): On 2015/01/28 12:44:14, Sami (OoO) wrote: > ...
5 years, 10 months ago (2015-01-28 12:50:53 UTC) #22
Benoit L
All done. Thank you ! https://codereview.chromium.org/879853002/diff/100001/tools/profile_chrome/chrome_startup_controller_unittest.py File tools/profile_chrome/chrome_startup_controller_unittest.py (right): https://codereview.chromium.org/879853002/diff/100001/tools/profile_chrome/chrome_startup_controller_unittest.py#newcode14 tools/profile_chrome/chrome_startup_controller_unittest.py:14: categories = '*' On ...
5 years, 10 months ago (2015-01-28 12:56:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879853002/120001
5 years, 10 months ago (2015-01-28 12:57:42 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-01-28 13:37:02 UTC) #26
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 13:37:49 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/477e91f0a79fef8e766d07f228e67b645509e0c4
Cr-Commit-Position: refs/heads/master@{#313499}

Powered by Google App Engine
This is Rietveld 408576698