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

Issue 2371873002: Fail gracefully if no Chrome trace or insufficient power samples. (Closed)

Created:
4 years, 2 months ago by alexandermont
Modified:
4 years, 2 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Fail gracefully if no Chrome trace or insufficient power samples. If there is no Chrome trace available or power samples do not cover the entire region, return no metrics rather than crashing or returning bogus metric values. BUG=catapult:#2867 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/5c9f7723faa3ba50ff48094ae5dd4d00cfaaad1a

Patch Set 1 #

Patch Set 2 : fix semicolons #

Total comments: 6

Patch Set 3 : fix whitespace #

Total comments: 2

Patch Set 4 : fix brace style and add browser process as well as renderer process #

Total comments: 1

Patch Set 5 : rebase #

Patch Set 6 : add logging #

Total comments: 1

Patch Set 7 : change console.log to console.error #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -128 lines) Patch
M tracing/tracing/metrics/system_health/power_metric.html View 1 2 3 4 5 6 7 7 chunks +66 lines, -21 lines 0 comments Download
M tracing/tracing/metrics/system_health/power_metric_test.html View 1 2 3 4 5 6 7 10 chunks +339 lines, -107 lines 0 comments Download

Messages

Total messages: 41 (15 generated)
alexandermont
4 years, 2 months ago (2016-09-26 18:53:41 UTC) #2
nednguyen
https://codereview.chromium.org/2371873002/diff/20001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/20001/tracing/tracing/metrics/system_health/power_metric.html#newcode274 tracing/tracing/metrics/system_health/power_metric.html:274: // (add 1 ms grace period at each end) ...
4 years, 2 months ago (2016-09-26 19:46:58 UTC) #3
benjhayden
Couple questions. :-) https://codereview.chromium.org/2371873002/diff/20001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/20001/tracing/tracing/metrics/system_health/power_metric.html#newcode273 tracing/tracing/metrics/system_health/power_metric.html:273: // Fail gracefully if the power ...
4 years, 2 months ago (2016-09-26 19:48:38 UTC) #4
alexandermont
https://codereview.chromium.org/2371873002/diff/20001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/20001/tracing/tracing/metrics/system_health/power_metric.html#newcode273 tracing/tracing/metrics/system_health/power_metric.html:273: // Fail gracefully if the power series doesn't cover ...
4 years, 2 months ago (2016-09-28 19:33:38 UTC) #5
benjhayden
https://codereview.chromium.org/2371873002/diff/40001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/40001/tracing/tracing/metrics/system_health/power_metric.html#newcode269 tracing/tracing/metrics/system_health/power_metric.html:269: for (var pid in chromeHelper.rendererHelpers) Why not use the ...
4 years, 2 months ago (2016-09-28 19:47:19 UTC) #6
alexandermont
https://codereview.chromium.org/2371873002/diff/40001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/40001/tracing/tracing/metrics/system_health/power_metric.html#newcode269 tracing/tracing/metrics/system_health/power_metric.html:269: for (var pid in chromeHelper.rendererHelpers) On 2016/09/28 at 19:47:18, ...
4 years, 2 months ago (2016-09-28 21:47:02 UTC) #7
benjhayden
lgtm
4 years, 2 months ago (2016-09-28 21:48:48 UTC) #8
alexandermont
4 years, 2 months ago (2016-09-28 22:07:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2371873002/60001
4 years, 2 months ago (2016-09-28 22:07:27 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Linux Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Linux%20Tryserver/builds/5077) Catapult Mac ...
4 years, 2 months ago (2016-09-28 22:08:20 UTC) #13
nednguyen
https://codereview.chromium.org/2371873002/diff/60001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/60001/tracing/tracing/metrics/system_health/power_metric.html#newcode287 tracing/tracing/metrics/system_health/power_metric.html:287: // (add 1 ms grace period at each end) ...
4 years, 2 months ago (2016-09-28 22:19:55 UTC) #14
alexandermont
4 years, 2 months ago (2016-09-29 17:56:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2371873002/80001
4 years, 2 months ago (2016-09-29 17:56:54 UTC) #18
nednguyen
On 2016/09/28 22:19:55, nednguyen wrote: > https://codereview.chromium.org/2371873002/diff/60001/tracing/tracing/metrics/system_health/power_metric.html > File tracing/tracing/metrics/system_health/power_metric.html (right): > > https://codereview.chromium.org/2371873002/diff/60001/tracing/tracing/metrics/system_health/power_metric.html#newcode287 > ...
4 years, 2 months ago (2016-09-29 17:59:53 UTC) #20
alexandermont
On 2016/09/28 at 22:19:55, nednguyen wrote: > https://codereview.chromium.org/2371873002/diff/60001/tracing/tracing/metrics/system_health/power_metric.html > File tracing/tracing/metrics/system_health/power_metric.html (right): > > https://codereview.chromium.org/2371873002/diff/60001/tracing/tracing/metrics/system_health/power_metric.html#newcode287 ...
4 years, 2 months ago (2016-09-29 18:02:43 UTC) #21
nednguyen
On 2016/09/29 18:02:43, alexandermont wrote: > On 2016/09/28 at 22:19:55, nednguyen wrote: > > > ...
4 years, 2 months ago (2016-09-29 18:33:27 UTC) #22
alexandermont
4 years, 2 months ago (2016-09-29 19:21:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2371873002/100001
4 years, 2 months ago (2016-09-29 19:21:56 UTC) #26
nednguyen
https://codereview.chromium.org/2371873002/diff/100001/tracing/tracing/metrics/system_health/power_metric.html File tracing/tracing/metrics/system_health/power_metric.html (right): https://codereview.chromium.org/2371873002/diff/100001/tracing/tracing/metrics/system_health/power_metric.html#newcode287 tracing/tracing/metrics/system_health/power_metric.html:287: console.log('Power metric error: no Chrome trace.'); to indicate error, ...
4 years, 2 months ago (2016-09-29 19:30:44 UTC) #28
alexandermont
4 years, 2 months ago (2016-09-29 22:26:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2371873002/120001
4 years, 2 months ago (2016-09-29 22:26:33 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Android Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Android%20Tryserver/builds/1531)
4 years, 2 months ago (2016-09-29 22:27:44 UTC) #34
alexandermont
4 years, 2 months ago (2016-09-29 22:33:29 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2371873002/140001
4 years, 2 months ago (2016-09-29 22:33:39 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/5c9f7723faa3ba50ff48094ae5dd4d00cfaaad1a
4 years, 2 months ago (2016-09-29 22:57:36 UTC) #40
rnephew (Reviews Here)
4 years, 2 months ago (2016-09-30 15:51:19 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2376193005/ by rnephew@chromium.org.

The reason for reverting is: crbug.com/650306

Causing BattOr tests to fail with:
MapFunctionError: Cannot read property 'bounds' of undefined.

Powered by Google App Engine
This is Rietveld 408576698