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

Issue 222413002: Adding dumpsys based power monitor for android. (Closed)

Created:
6 years, 8 months ago by qsr
Modified:
6 years, 8 months ago
Reviewers:
tonyg, jeremy
CC:
chromium-reviews, klundberg+watch_chromium.org, telemetry+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, kjellander_chromium
Visibility:
Public.

Description

Adding dumpsys based power monitor for android. The implementation is based on the results from 'dumpsys batterystats'. R=tonyg@chromium.org,jeremy@chromium.org BUG=314481 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261425

Patch Set 1 #

Patch Set 2 : Update API #

Patch Set 3 : Fix after API change #

Total comments: 12

Patch Set 4 : Follow review #

Total comments: 28

Patch Set 5 : Follow review #

Total comments: 4

Patch Set 6 : Follow review #

Patch Set 7 : W0212 warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -114 lines) Patch
M tools/perf/measurements/smoothness_unittest.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/metrics/power.py View 1 2 5 chunks +10 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 3 4 2 chunks +13 lines, -38 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/mac_platform_backend.py View 1 1 chunk +6 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 chunks +3 lines, -13 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend_unittest.py View 1 2 3 4 5 6 2 chunks +13 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/__init__.py View 1 1 chunk +9 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor.py View 1 3 chunks +6 lines, -6 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py View 1 2 3 4 5 6 1 chunk +93 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor_unittest.py View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor.py View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/power_monitor_controller.py View 1 1 chunk +7 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/power_monitor_controller_unittest.py View 1 1 chunk +8 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor.py View 1 4 chunks +6 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
A tools/telemetry/unittest_data/batterystats_v7.csv View 1 2 3 4 1 chunk +433 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
qsr
6 years, 8 months ago (2014-04-02 16:02:37 UTC) #1
tonyg
This is beautiful! Excellent work. Some nits inline, but please take an lgtm in advance. ...
6 years, 8 months ago (2014-04-02 17:15:52 UTC) #2
qsr
https://chromiumcodereview.appspot.com/222413002/diff/30001/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py File tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py (right): https://chromiumcodereview.appspot.com/222413002/diff/30001/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py#newcode32 tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py:32: result = self._adb.RunShellCommand('dumpsys batterystats -c') On 2014/04/02 17:15:52, tonyg ...
6 years, 8 months ago (2014-04-03 09:47:41 UTC) #3
jeremy
Great stuff!! Thanks for cleaning up the Sync interfaces!! https://codereview.chromium.org/222413002/diff/50001/tools/telemetry/telemetry/core/platform/__init__.py File tools/telemetry/telemetry/core/platform/__init__.py (right): https://codereview.chromium.org/222413002/diff/50001/tools/telemetry/telemetry/core/platform/__init__.py#newcode186 tools/telemetry/telemetry/core/platform/__init__.py:186: ...
6 years, 8 months ago (2014-04-03 11:16:30 UTC) #4
qsr
https://codereview.chromium.org/222413002/diff/50001/tools/telemetry/telemetry/core/platform/__init__.py File tools/telemetry/telemetry/core/platform/__init__.py (right): https://codereview.chromium.org/222413002/diff/50001/tools/telemetry/telemetry/core/platform/__init__.py#newcode186 tools/telemetry/telemetry/core/platform/__init__.py:186: """Stops monitoring power utilization and returns collects stats On ...
6 years, 8 months ago (2014-04-03 12:02:43 UTC) #5
jeremy
LGTM with nits https://codereview.chromium.org/222413002/diff/70001/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py File tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py (right): https://codereview.chromium.org/222413002/diff/70001/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py#newcode14 tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py:14: consumption of a single android application. ...
6 years, 8 months ago (2014-04-03 12:11:42 UTC) #6
qsr
https://codereview.chromium.org/222413002/diff/70001/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py File tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py (right): https://codereview.chromium.org/222413002/diff/70001/tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py#newcode14 tools/telemetry/telemetry/core/platform/power_monitor/android_dumpsys_power_monitor.py:14: consumption of a single android application. This measure is ...
6 years, 8 months ago (2014-04-03 12:19:06 UTC) #7
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 8 months ago (2014-04-03 12:19:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/222413002/90001
6 years, 8 months ago (2014-04-03 12:20:16 UTC) #9
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 8 months ago (2014-04-03 13:45:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/222413002/80018
6 years, 8 months ago (2014-04-03 13:45:40 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 15:56:29 UTC) #12
Message was sent while issue was closed.
Change committed as 261425

Powered by Google App Engine
This is Rietveld 408576698