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

Issue 350763005: [Telemetry] Power metric: subtract quiescent power draw from result (Closed)

Created:
6 years, 6 months ago by jeremy
Modified:
6 years, 5 months ago
Reviewers:
dtu, tonyg, qsr
CC:
chromium-reviews, telemetry+watch_chromium.org, tonyg
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Power metric: subtract quiescent power draw from result Some power measurement backends can only measure global power draw for the whole system and not per-process. Try to get a more exact power measurement by measuring the power draw without the browser running and then subtracting that number from the measurement in the test to try to get a more exact number for how much additional power is being used by the test case. BUG=339180 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280994

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a CanMeasurePerApplicationPower() method to platform #

Patch Set 3 : cleanup #

Total comments: 2

Patch Set 4 : Fix review comments #

Patch Set 5 : Fix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -25 lines) Patch
M tools/perf/benchmarks/dromaeo.py View 1 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/benchmarks/indexeddb_perf.py View 1 1 chunk +5 lines, -1 line 0 comments Download
M tools/perf/benchmarks/kraken.py View 1 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/benchmarks/octane.py View 1 1 chunk +3 lines, -1 line 0 comments Download
M tools/perf/benchmarks/robohornet_pro.py View 1 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/benchmarks/sunspider.py View 1 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/measurements/image_decoding.py View 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/measurements/memory.py View 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/measurements/page_cycler.py View 2 chunks +5 lines, -1 line 0 comments Download
M tools/perf/measurements/page_cycler_unittest.py View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M tools/perf/measurements/smoothness.py View 1 chunk +3 lines, -1 line 0 comments Download
M tools/perf/measurements/smoothness_unittest.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/perf/measurements/tab_switching.py View 3 chunks +8 lines, -3 lines 0 comments Download
M tools/perf/measurements/webrtc.py View 1 chunk +4 lines, -1 line 0 comments Download
M tools/perf/metrics/power.py View 1 2 3 4 chunks +43 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 chunks +15 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/mac_platform_backend.py View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/__init__.py View 1 1 chunk +6 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/power_monitor/powermetrics_power_monitor_unittest.py View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jeremy
Initially just try this with the tab_switching measurement, if this improve results then we can ...
6 years, 6 months ago (2014-06-25 08:27:23 UTC) #1
qsr
On 2014/06/25 08:27:23, jeremy wrote: > Initially just try this with the tab_switching measurement, if ...
6 years, 6 months ago (2014-06-25 10:41:23 UTC) #2
jeremy
Thanks, for other tests the thought I had was to measure for a small period ...
6 years, 6 months ago (2014-06-25 11:05:04 UTC) #3
qsr
LGTM, but each time I see the number of change we have to made because ...
6 years, 6 months ago (2014-06-25 11:10:26 UTC) #4
jeremy
On 2014/06/25 11:10:26, qsr wrote: > LGTM, but each time I see the number of ...
6 years, 6 months ago (2014-06-25 11:15:04 UTC) #5
qsr
On 2014/06/25 11:15:04, jeremy wrote: > On 2014/06/25 11:10:26, qsr wrote: > > LGTM, but ...
6 years, 6 months ago (2014-06-25 11:16:15 UTC) #6
tonyg
lgtm assuming you're okay w/ the suggested approach https://codereview.chromium.org/350763005/diff/1/tools/perf/metrics/power.py File tools/perf/metrics/power.py (right): https://codereview.chromium.org/350763005/diff/1/tools/perf/metrics/power.py#newcode100 tools/perf/metrics/power.py:100: results.AddValue(scalar.ScalarValue( ...
6 years, 5 months ago (2014-06-26 16:19:05 UTC) #7
dtu
On 2014/06/26 16:19:05, tonyg wrote: > lgtm assuming you're okay w/ the suggested approach > ...
6 years, 5 months ago (2014-06-26 23:33:03 UTC) #8
jeremy
Tony/dtu: Could you take another look please? I needed to add a CanMeasurePerApplicationPower() to power ...
6 years, 5 months ago (2014-06-30 08:58:22 UTC) #9
qsr
lgtm https://codereview.chromium.org/350763005/diff/40001/tools/perf/measurements/page_cycler.py File tools/perf/measurements/page_cycler.py (right): https://codereview.chromium.org/350763005/diff/40001/tools/perf/measurements/page_cycler.py#newcode85 tools/perf/measurements/page_cycler.py:85: """Initialize metrics once right before the browser has ...
6 years, 5 months ago (2014-07-01 09:02:24 UTC) #10
jeremy
The CQ bit was checked by jeremy@chromium.org
6 years, 5 months ago (2014-07-01 11:49:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/350763005/60001
6 years, 5 months ago (2014-07-01 11:50:20 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-01 13:01:56 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-01 13:22:15 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/47552)
6 years, 5 months ago (2014-07-01 13:22:16 UTC) #15
jeremy
The CQ bit was checked by jeremy@chromium.org
6 years, 5 months ago (2014-07-02 08:03:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/350763005/80001
6 years, 5 months ago (2014-07-02 08:04:53 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 10:11:32 UTC) #18
Message was sent while issue was closed.
Change committed as 280994

Powered by Google App Engine
This is Rietveld 408576698