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

Issue 547623002: Simpler logic to setup/restore Chrome command line (Closed)

Created:
6 years, 3 months ago by perezju
Modified:
6 years, 3 months ago
Reviewers:
tonyg, jbudorick, Sami, slamm
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Simpler logic to setup/restore Chrome command line Simplified the logic to save, set, and restore the command line used to launch a browser. For efficiency, functions are implemented as single shell commands to run on the device. This reduces about 20% of the time taken to start a new browser, and overall 5% of the total running time of telemety unit tests. BUG=379378 Committed: https://crrev.com/ed4ecc3210f219f40b77ce5efae5d668915b0ed1 Cr-Commit-Position: refs/heads/master@{#294401}

Patch Set 1 #

Total comments: 9

Patch Set 2 : WriteText example for writing short strings to files #

Patch Set 3 : Added DeviceUtils.WriteTextFile #

Total comments: 1

Patch Set 4 : fixed nit (lined up params) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -36 lines) Patch
M build/android/pylib/android_commands.py View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 2 4 chunks +22 lines, -34 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
perezju
skyostil@chromium.org: Please review changes in tonyg@chromium.org: Please review changes in
6 years, 3 months ago (2014-09-05 12:51:17 UTC) #2
Sami
Looks great. Couple of questions about the scripts. https://codereview.chromium.org/547623002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/547623002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode11 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:11: import ...
6 years, 3 months ago (2014-09-05 14:18:13 UTC) #3
tonyg
I'm super-excited to see these cycle-time improvements going by. However, I do worry about the ...
6 years, 3 months ago (2014-09-05 16:16:08 UTC) #4
jbudorick
On 2014/09/05 16:16:08, tonyg wrote: > I'm super-excited to see these cycle-time improvements going by. ...
6 years, 3 months ago (2014-09-05 16:31:32 UTC) #5
slamm
https://codereview.chromium.org/547623002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/547623002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode239 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:239: return '%s=%s' % (key, pipes.quote(values)) FYI, RunShellCommand doc string ...
6 years, 3 months ago (2014-09-05 17:14:02 UTC) #7
perezju
Thanks all for the helpful comments. I actually agree with much of what has been ...
6 years, 3 months ago (2014-09-08 09:03:42 UTC) #8
perezju
I've added a new patch set with an example of a `WriteText` function to write ...
6 years, 3 months ago (2014-09-08 13:43:53 UTC) #9
perezju
https://codereview.chromium.org/547623002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/547623002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode239 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:239: return '%s=%s' % (key, pipes.quote(values)) On 2014/09/05 17:14:01, slamm ...
6 years, 3 months ago (2014-09-08 13:45:03 UTC) #10
perezju
jbudorick@chromium.org: Please review changes in DeviceUtils I've added a WriteTextFile in device utils for writing ...
6 years, 3 months ago (2014-09-11 12:08:18 UTC) #12
jbudorick
b/a/pylib/device lgtm w/ nit https://codereview.chromium.org/547623002/diff/40001/build/android/pylib/device/device_utils.py File build/android/pylib/device/device_utils.py (right): https://codereview.chromium.org/547623002/diff/40001/build/android/pylib/device/device_utils.py#newcode640 build/android/pylib/device/device_utils.py:640: retries=None): nit: line this up ...
6 years, 3 months ago (2014-09-11 13:57:07 UTC) #13
tonyg
lgtm
6 years, 3 months ago (2014-09-11 15:25:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/547623002/60001
6 years, 3 months ago (2014-09-11 15:30:25 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 30173ba3d066860e0dfcf8262d33b127d592da46
6 years, 3 months ago (2014-09-11 16:40:04 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 16:45:24 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ed4ecc3210f219f40b77ce5efae5d668915b0ed1
Cr-Commit-Position: refs/heads/master@{#294401}

Powered by Google App Engine
This is Rietveld 408576698