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

Issue 25002005: Telemetry / Android: do not crash on GetCpuStats() if the process is gone. (Closed)

Created:
7 years, 2 months ago by bulach
Modified:
7 years, 2 months ago
Reviewers:
tonyg, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

Telemetry / Android: do not crash on GetCpuStats() if the process is gone. Some bots are failing with: ...[0].split() IndexError: list index out of range This can specially happen on page cyclers, since multiple renders can be started and killed by the framework. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226642

Patch Set 1 #

Patch Set 2 : Unittests! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -2 lines) Patch
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 1 chunk +5 lines, -2 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py View 1 1 chunk +49 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/unittest/system_stub.py View 1 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
bulach
I'm not quite sure what would be the impact on higher up layers, but I ...
7 years, 2 months ago (2013-09-27 16:27:46 UTC) #1
nduca
whommmp, lgtm. should we have a unit test for this though?
7 years, 2 months ago (2013-10-02 07:16:10 UTC) #2
bulach
good idea! added unittests and some stubs up in telemetry/unittests/system_stub.py..
7 years, 2 months ago (2013-10-02 09:36:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/25002005/8001
7 years, 2 months ago (2013-10-02 21:08:08 UTC) #4
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 01:07:51 UTC) #5
Message was sent while issue was closed.
Change committed as 226642

Powered by Google App Engine
This is Rietveld 408576698