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

Issue 572643002: telemetry: Fix runaway subprocess in monsoon_power_monitor.py (Closed)

Created:
6 years, 3 months ago by v.putkinen
Modified:
6 years, 3 months ago
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

telemetry: Fix runaway subprocess in monsoon_power_monitor.py Telemetry leaves a memory hogging subprocess behind if: 1) A Monsoon Power Monitor is attached to host computer (Linux), 2) User runs a power-metric-using benchmark such as sunspider on Android ChromeShell, and 3) Benchmark raises an exception between power metric's Start and Stop calls. For example, an exception will occur if browser crashes and the benchmark does something like tab.WaitForJavaScriptExpression(). This patch fixes the issue by setting the daemon flag on the subprocess. This will cause the main process to kill the subprocess on exit. BUG=413596 R=ernstm@chromium.org Committed: https://crrev.com/362315d0dee01153479d649db12e1e6edd2622af Cr-Commit-Position: refs/heads/master@{#296177}

Patch Set 1 #

Patch Set 2 : Fix email address in AUTHORS #

Total comments: 2

Patch Set 3 : Use True instead of 1 for boolean flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
v.putkinen
I'd like you to review my Telemetry patch.
6 years, 3 months ago (2014-09-15 13:15:37 UTC) #3
dtu
On 2014/09/15 13:15:37, v.putkinen wrote: > I'd like you to review my Telemetry patch. If ...
6 years, 3 months ago (2014-09-15 21:33:25 UTC) #4
v.putkinen
On 2014/09/15 21:33:25, dtu wrote: > If this is your first patch, you need to ...
6 years, 3 months ago (2014-09-16 21:48:11 UTC) #5
achuithb
https://codereview.chromium.org/572643002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py File tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py (right): https://codereview.chromium.org/572643002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py#newcode77 tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py:77: self._powermonitor_process.daemon = 1 True? Isn't this a Boolean?
6 years, 3 months ago (2014-09-17 13:37:58 UTC) #7
v.putkinen
On 2014/09/16 21:48:11, v.putkinen wrote: > I just submitted an Individidual CLA since that seems ...
6 years, 3 months ago (2014-09-18 07:32:47 UTC) #8
v.putkinen
https://codereview.chromium.org/572643002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py File tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py (right): https://codereview.chromium.org/572643002/diff/20001/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py#newcode77 tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py:77: self._powermonitor_process.daemon = 1 On 2014/09/17 13:37:58, achuithb wrote: > ...
6 years, 3 months ago (2014-09-18 07:33:54 UTC) #9
achuithb
lgtm Looks like this was fixed.
6 years, 3 months ago (2014-09-23 12:48:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/572643002/40001
6 years, 3 months ago (2014-09-23 12:49:10 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 2abfdfaa32c7f43aceef504963ccac65ee04f7b8
6 years, 3 months ago (2014-09-23 14:29:33 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 14:30:23 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/362315d0dee01153479d649db12e1e6edd2622af
Cr-Commit-Position: refs/heads/master@{#296177}

Powered by Google App Engine
This is Rietveld 408576698