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

Issue 536343003: Kill old browser rather than close (Closed)

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

Description

Currently, the most time consuming operation when creating a new browser during Telemetry tests consists of sending an "adb force-stop" command to the device, in order to force kill any previous browsers which did not close as expected. Sending a kill -9 to the process is, however, more efficient. This CL also adds some efficiency improvements to DeviceUtils.KillAll. The change amounts to a 6-7% speedup when running all of telemetry unittests. BUG=379378 Committed: https://crrev.com/1fd28e9eb7414c43c3811f684832296a85289b2a Cr-Commit-Position: refs/heads/master@{#294368}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Using GetPids to check if package is running #

Total comments: 2

Patch Set 3 : Using KillAll instead of ForceClose #

Patch Set 4 : Using KillAll with retries=0 #

Total comments: 1

Patch Set 5 : Renamed _CloseBrowser to _KillBrowser #

Patch Set 6 : Rebase from master #

Patch Set 7 : git cl upload master #

Patch Set 8 : resolved patch conflict #

Patch Set 9 : apply change that caused conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -32 lines) Patch
M build/android/pylib/device/device_utils.py View 1 2 3 2 chunks +28 lines, -10 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 5 chunks +9 lines, -20 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (12 generated)
perezju
John, Nat: do you think it is reasonable to expect grep to be available on ...
6 years, 3 months ago (2014-09-05 13:46:32 UTC) #2
jbudorick
How long does the ForceStop call actually take? https://codereview.chromium.org/536343003/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/536343003/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode201 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:201: if ...
6 years, 3 months ago (2014-09-05 14:01:41 UTC) #3
perezju
The aggregated time, when opening 85 browser instances, is around 52.501 seconds to do the ...
6 years, 3 months ago (2014-09-05 14:08:29 UTC) #4
perezju
https://codereview.chromium.org/536343003/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/536343003/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode201 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:201: if self._adb.device().RunShellCommand( On 2014/09/05 14:01:41, jbudorick wrote: > To ...
6 years, 3 months ago (2014-09-08 09:24:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perezju@chromium.org/536343003/20001
6 years, 3 months ago (2014-09-09 11:34:16 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 3 months ago (2014-09-09 11:34:19 UTC) #9
jbudorick
lgtm
6 years, 3 months ago (2014-09-09 13:55:32 UTC) #10
jbudorick
On 2014/09/09 13:55:32, jbudorick wrote: > lgtm but you probably need OWNERS approval, too
6 years, 3 months ago (2014-09-09 13:57:32 UTC) #11
tonyg
https://codereview.chromium.org/536343003/diff/20001/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/536343003/diff/20001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode201 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:201: if self._adb.device().GetPids(self._backend_settings.package): Excellent numbers -- I'm excited to get ...
6 years, 3 months ago (2014-09-09 14:39:07 UTC) #13
jbudorick
https://codereview.chromium.org/536343003/diff/20001/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/536343003/diff/20001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode201 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:201: if self._adb.device().GetPids(self._backend_settings.package): On 2014/09/09 14:39:07, tonyg wrote: > Excellent ...
6 years, 3 months ago (2014-09-09 15:04:24 UTC) #14
tonyg
BTW, do we know if some form of kill -9 could get us the same ...
6 years, 3 months ago (2014-09-09 15:08:31 UTC) #15
jbudorick
On 2014/09/09 15:08:31, tonyg wrote: > BTW, do we know if some form of kill ...
6 years, 3 months ago (2014-09-09 15:46:19 UTC) #16
tonyg
On 2014/09/09 15:46:19, jbudorick wrote: > On 2014/09/09 15:08:31, tonyg wrote: > > BTW, do ...
6 years, 3 months ago (2014-09-09 16:33:46 UTC) #17
perezju
On 2014/09/09 16:33:46, tonyg wrote: > On 2014/09/09 15:46:19, jbudorick wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 16:42:10 UTC) #18
tonyg
On 2014/09/09 16:42:10, perezju wrote: > On 2014/09/09 16:33:46, tonyg wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 16:46:16 UTC) #19
jbudorick
On 2014/09/09 16:42:10, perezju wrote: > On 2014/09/09 16:33:46, tonyg wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 16:48:01 UTC) #20
perezju
I've just added a new patch set with my new proposal using KillAll rather than ...
6 years, 3 months ago (2014-09-10 15:05:49 UTC) #22
tonyg
> - A better implementation of KillAll + ignoring exception has a speedup of 5% ...
6 years, 3 months ago (2014-09-10 15:42:11 UTC) #23
jbudorick
On 2014/09/10 15:05:49, perezju wrote: > I've just added a new patch set with my ...
6 years, 3 months ago (2014-09-10 15:58:24 UTC) #24
perezju
On 2014/09/10 15:42:11, tonyg wrote: > > - A better implementation of KillAll + ignoring ...
6 years, 3 months ago (2014-09-10 16:35:03 UTC) #25
jbudorick
On 2014/09/10 16:35:03, perezju wrote: > On 2014/09/10 15:42:11, tonyg wrote: > > > - ...
6 years, 3 months ago (2014-09-10 16:41:41 UTC) #26
perezju
On 2014/09/10 16:41:41, jbudorick wrote: > On 2014/09/10 16:35:03, perezju wrote: > > I'm re-running ...
6 years, 3 months ago (2014-09-10 16:57:42 UTC) #27
tonyg
lgtm++ Thanks for sticking with this one, it looks really nice now :) Please wait ...
6 years, 3 months ago (2014-09-10 17:02:54 UTC) #28
jbudorick
lgtm cc me on the ticket for selective retries.
6 years, 3 months ago (2014-09-10 17:05:11 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/536343003/100001
6 years, 3 months ago (2014-09-11 08:09:18 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/9505)
6 years, 3 months ago (2014-09-11 08:12:02 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/536343003/120001
6 years, 3 months ago (2014-09-11 08:48:08 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/59499) chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10258) ios_rel_device_ninja ...
6 years, 3 months ago (2014-09-11 08:51:05 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/536343003/140001
6 years, 3 months ago (2014-09-11 09:09:42 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/54565)
6 years, 3 months ago (2014-09-11 09:12:14 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/536343003/180001
6 years, 3 months ago (2014-09-11 09:39:25 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:180001) as 0fda08cb3c59763ce01d21340c5003b7412bbac5
6 years, 3 months ago (2014-09-11 10:37:59 UTC) #44
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 10:43:54 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1fd28e9eb7414c43c3811f684832296a85289b2a
Cr-Commit-Position: refs/heads/master@{#294368}

Powered by Google App Engine
This is Rietveld 408576698