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

Issue 675843004: Telemetry: Implement idle wakeups counting on Android. (Closed)

Created:
6 years, 2 months ago by Lei Zhang
Modified:
4 years, 2 months ago
CC:
chromium-reviews, telemetry+watch_chromium.org, sullivan, pasko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Telemetry: Implement idle wakeups counting on Android. BUG=422170

Patch Set 1 #

Total comments: 18

Patch Set 2 : rebase #

Patch Set 3 : add tests #

Patch Set 4 : fix android #

Patch Set 5 : rebase, fix tests #

Patch Set 6 : revert non-android #

Patch Set 7 : Add CanMeasureIdleWakeUps() #

Patch Set 8 : nit #

Patch Set 9 : Uncouple CanMonitorPower and CanMeasureIdleWakeUps #

Patch Set 10 : fix unit tests, rebase #

Total comments: 2

Patch Set 11 : fix mac #

Patch Set 12 : address nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -5 lines) Patch
M tools/perf/measurements/page_cycler_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M tools/perf/measurements/smoothness_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M tools/perf/metrics/power.py View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 1 comment Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -1 line 1 comment Download
M tools/telemetry/telemetry/core/platform/android_platform_backend.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/android_platform_backend_unittest.py View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/ios_platform_backend.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +33 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/linux_based_platform_backend_unittest.py View 1 2 3 4 4 chunks +22 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/mac_platform_backend.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/win_platform_backend.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/timer_stats View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/timer_stats_dup_pid View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/timer_stats_empty View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
Lei Zhang
https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode10 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:10: import logging I'm not sure how much of the ...
6 years, 2 months ago (2014-10-24 03:03:26 UTC) #4
jeremy
Very very nice!!! Thanks for implementing this! https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode53 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:53: results.update({'CpuProcessTime': cpu_process_jiffies}) ...
6 years, 1 month ago (2014-10-27 06:04:17 UTC) #6
sullivan
https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode10 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:10: import logging On 2014/10/24 03:03:26, Lei Zhang wrote: > ...
6 years, 1 month ago (2014-10-27 14:43:32 UTC) #8
Lei Zhang
https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode10 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:10: import logging On 2014/10/27 14:43:32, sullivan wrote: > On ...
6 years, 1 month ago (2014-10-28 08:12:19 UTC) #9
jeremy
https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py (right): https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode150 tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py:150: os.path.join(os.path.dirname(__file__), 'linux_helper.py'), As mentioned above, an interactive prompt will ...
6 years, 1 month ago (2014-10-28 11:38:04 UTC) #10
Lei Zhang
On 2014/10/28 11:38:04, jeremy wrote: > https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py > File tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py > (right): > > https://codereview.chromium.org/675843004/diff/40001/tools/telemetry/telemetry/core/platform/linux_based_platform_backend.py#newcode150 ...
6 years, 1 month ago (2014-10-28 23:35:42 UTC) #11
Lei Zhang
On 2014/10/28 23:35:42, Lei Zhang wrote: > On 2014/10/28 11:38:04, jeremy wrote: > > > ...
6 years, 1 month ago (2014-10-29 00:28:16 UTC) #12
jeremy
On 2014/10/28 23:35:42, Lei Zhang wrote: > So maybe we want a setuid binary then? ...
6 years, 1 month ago (2014-10-29 06:03:14 UTC) #13
Lei Zhang
I'm scaling back the scope of this CL to just Android. A lot of the ...
6 years, 1 month ago (2014-10-30 08:50:43 UTC) #14
Lei Zhang
On 2014/10/30 08:50:43, Lei Zhang wrote: > I'm scaling back the scope of this CL ...
6 years, 1 month ago (2014-11-05 07:07:10 UTC) #15
jeremy
LGTM Could you please manually check this on a Mac to make sure idle wakeup ...
6 years, 1 month ago (2014-11-05 07:28:11 UTC) #16
Lei Zhang
Looking for an OWNER to review at this point. Yes, I tested manually on a ...
6 years, 1 month ago (2014-11-06 04:52:49 UTC) #17
Lei Zhang
ping?
6 years, 1 month ago (2014-11-13 21:47:58 UTC) #18
tonyg
https://codereview.chromium.org/675843004/diff/260001/tools/telemetry/telemetry/core/platform/__init__.py File tools/telemetry/telemetry/core/platform/__init__.py (right): https://codereview.chromium.org/675843004/diff/260001/tools/telemetry/telemetry/core/platform/__init__.py#newcode331 tools/telemetry/telemetry/core/platform/__init__.py:331: def StartMeasuringIdleWakeUps(self): The platform API needs to report idle ...
6 years, 1 month ago (2014-11-14 21:34:03 UTC) #19
jdduke (slow)
5 years, 5 months ago (2015-07-09 21:00:19 UTC) #22
https://codereview.chromium.org/675843004/diff/260001/tools/perf/metrics/powe...
File tools/perf/metrics/power.py (right):

https://codereview.chromium.org/675843004/diff/260001/tools/perf/metrics/powe...
tools/perf/metrics/power.py:173: """Computes number of idle wakeups that
occurred over measurement period.
Hmm, the way /proc/timer_stats collection works I'm not sure we can subtract the
before/after values (as the values are really only valid within the scope of
enabling collection).

Perhaps we could have |StopMeasuringIdleWakeUps| return the total wakeups scoped
by |StartMeasuringIdleWakeups|? So Mac would do subtraction, and Android (Linux)
would just return the raw data from /proc/timer_stats? If we do that, I wonder
if it makes sense (or would be less confusing) to remove IdleWakeupCount as a
member of CPU stats.

Powered by Google App Engine
This is Rietveld 408576698