Descriptiontelemetry: 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 #Messages
Total messages: 14 (4 generated)
|