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

Issue 1242943005: [Android] Support idle wakeup measurement with /proc/timer_stats (Closed)

Created:
5 years, 5 months ago by jdduke (slow)
Modified:
5 years, 2 months ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Support idle wakeup measurement with /proc/timer_stats Add support for using /proc/timer_stats to measure idle wakeups, as tracked by power metrics. This involves piping begin/end markers to /proc/timer_stats to collect the necessary stats, and mapping the resulting per-thread wakeup data to a given process id. Unfortunately, the way Mac measures idle wakeups is very different, which makes the current measurement glue somewhat misleading for all platforms. Longer term, idle wakeup measurements should be rolled into a standalone PowerMonitor. Based on the original change by thestig@chromium.org at https://codereview.chromium.org/675843004/. BUG=391309, 422170 CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Working test #

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

Messages

Total messages: 13 (5 generated)
jdduke (slow)
thestig@, jeremy@: I rebased thestig's patch from a while ago, and managed to get the ...
5 years, 5 months ago (2015-07-23 19:04:39 UTC) #3
jdduke (slow)
s/jeremy/sullivan Annie, see my initial comment about trying to do this instead as a PowerMonitor ...
5 years, 5 months ago (2015-07-23 19:29:50 UTC) #5
sullivan
I'm okay with this but would like to get Ned's opinion as well.
5 years, 4 months ago (2015-07-27 16:24:26 UTC) #7
nednguyen
+Randy https://codereview.chromium.org/1242943005/diff/50001/tools/perf/measurements/smoothness_unittest.py File tools/perf/measurements/smoothness_unittest.py (right): https://codereview.chromium.org/1242943005/diff/50001/tools/perf/measurements/smoothness_unittest.py#newcode29 tools/perf/measurements/smoothness_unittest.py:29: def CanMeasureIdleWakeUps(self): Why do you need to add ...
5 years, 4 months ago (2015-07-29 22:22:45 UTC) #9
jdduke (slow)
https://codereview.chromium.org/1242943005/diff/50001/tools/telemetry/telemetry/core/platform.py File tools/telemetry/telemetry/core/platform.py (right): https://codereview.chromium.org/1242943005/diff/50001/tools/telemetry/telemetry/core/platform.py#newcode297 tools/telemetry/telemetry/core/platform.py:297: """Stops monitoring idle wakeups.""" On 2015/07/29 22:22:45, nednguyen wrote: ...
5 years, 4 months ago (2015-07-29 22:30:03 UTC) #10
rnephew (Reviews Here)
Support for multiple power monitors is in with https://codereview.chromium.org/1255673002/
5 years, 4 months ago (2015-07-29 22:42:25 UTC) #11
rnephew (Reviews Here)
On 2015/07/29 22:42:25, rnephew1 wrote: > Support for multiple power monitors is in with > ...
5 years, 4 months ago (2015-07-30 15:49:18 UTC) #12
jdduke (slow)
5 years, 2 months ago (2015-10-21 19:30:02 UTC) #13
Tabling this for now until I can prioritize it properly.

Powered by Google App Engine
This is Rietveld 408576698