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

Issue 1730313007: Metric-ify SystemHealth metrics (Closed)

Created:
4 years, 10 months ago by benjhayden
Modified:
4 years, 9 months ago
Reviewers:
eakuefner, nduca
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Metric-ify SystemHealth metrics. SystemHealthMetrics is a registered metric that just calls ResponsivenessMetric and EfficiencyMetric. ResponsivenessMetric calls AnimationThroughput/SmoothnessMetric before computing responsiveness for each UserExpectation. Each metric adds one ScalarNumericValue for each supported UserExpectation. By "supported", I mean, for example, that IdleExpectations do not afford the concept of responsiveness; only AnimationExpectations afford throughput and smoothness. Each metric value contains groupingKeys "userExpectation" (UE.stableId), "userExpectationStageTitle", and "userExpectationInitiatorTitle". The metrics throw in cases that should never happen, e.g. if there are no frame events associated with an AnimationExpectation, or if a UE is neither Response/Animation/Idle/Load. This CL does not plumb the new metrics into any UI. See also https://codereview.chromium.org/1741843002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/ed08f0f1f07a6d16e3626c3a197499763f9b76c4

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : rebase, comment #

Patch Set 4 : throw #

Total comments: 4

Patch Set 5 : per-UE ScalarNumericValues with groupingKeys #

Patch Set 6 : fix tests #

Patch Set 7 : rebase #

Patch Set 8 : fix single-user-expectation-sub-view #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -244 lines) Patch
M tracing/trace_viewer.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M tracing/tracing/metrics/system_health/animation_smoothness_metric.html View 1 2 3 4 5 2 chunks +37 lines, -25 lines 0 comments Download
M tracing/tracing/metrics/system_health/animation_throughput_metric.html View 1 2 3 4 5 1 chunk +30 lines, -20 lines 0 comments Download
M tracing/tracing/metrics/system_health/efficiency_metric.html View 1 2 3 4 5 1 chunk +44 lines, -30 lines 0 comments Download
M tracing/tracing/metrics/system_health/efficiency_metric_test.html View 1 2 3 4 5 1 chunk +29 lines, -18 lines 0 comments Download
M tracing/tracing/metrics/system_health/responsiveness_metric.html View 1 2 3 4 5 3 chunks +70 lines, -29 lines 0 comments Download
M tracing/tracing/metrics/system_health/responsiveness_metric_test.html View 1 2 3 4 5 1 chunk +97 lines, -92 lines 0 comments Download
A tracing/tracing/metrics/system_health/system_health_metrics.html View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M tracing/tracing/model/interaction_record_test.html View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M tracing/tracing/model/user_model/user_expectation.html View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M tracing/tracing/ui/analysis/single_user_expectation_sub_view.html View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -22 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
benjhayden
4 years, 10 months ago (2016-02-26 19:01:46 UTC) #4
eakuefner
https://codereview.chromium.org/1730313007/diff/20001/telemetry/telemetry/value/translate_common_values.py File telemetry/telemetry/value/translate_common_values.py (right): https://codereview.chromium.org/1730313007/diff/20001/telemetry/telemetry/value/translate_common_values.py#newcode10 telemetry/telemetry/value/translate_common_values.py:10: return failure.FailureValue.FromMessage(page, mre_failure.stack) rebase?
4 years, 10 months ago (2016-02-27 00:45:49 UTC) #5
eakuefner
https://codereview.chromium.org/1730313007/diff/20001/tracing/tracing/metrics/system_health/efficiency_metric.html File tracing/tracing/metrics/system_health/efficiency_metric.html (right): https://codereview.chromium.org/1730313007/diff/20001/tracing/tracing/metrics/system_health/efficiency_metric.html#newcode23 tracing/tracing/metrics/system_health/efficiency_metric.html:23: if (score === undefined) What can cause this score ...
4 years, 9 months ago (2016-03-01 20:25:34 UTC) #6
benjhayden
https://codereview.chromium.org/1730313007/diff/20001/tracing/tracing/metrics/system_health/efficiency_metric.html File tracing/tracing/metrics/system_health/efficiency_metric.html (right): https://codereview.chromium.org/1730313007/diff/20001/tracing/tracing/metrics/system_health/efficiency_metric.html#newcode23 tracing/tracing/metrics/system_health/efficiency_metric.html:23: if (score === undefined) On 2016/03/01 at 20:25:34, eakuefner ...
4 years, 9 months ago (2016-03-01 20:59:23 UTC) #7
eakuefner
lgtm, but could you throw instead of returning undefined? That will cause an MRE failure ...
4 years, 9 months ago (2016-03-02 19:33:09 UTC) #8
nduca
https://codereview.chromium.org/1730313007/diff/60001/tracing/tracing/metrics/system_health/system_health_metric.html File tracing/tracing/metrics/system_health/system_health_metric.html (right): https://codereview.chromium.org/1730313007/diff/60001/tracing/tracing/metrics/system_health/system_health_metric.html#newcode22 tracing/tracing/metrics/system_health/system_health_metric.html:22: var score = SystemHealthMetric.forModel(model); might want to push the ...
4 years, 9 months ago (2016-03-03 00:31:11 UTC) #10
benjhayden
https://codereview.chromium.org/1730313007/diff/60001/tracing/tracing/metrics/system_health/system_health_metric.html File tracing/tracing/metrics/system_health/system_health_metric.html (right): https://codereview.chromium.org/1730313007/diff/60001/tracing/tracing/metrics/system_health/system_health_metric.html#newcode22 tracing/tracing/metrics/system_health/system_health_metric.html:22: var score = SystemHealthMetric.forModel(model); On 2016/03/03 at 00:31:10, nduca ...
4 years, 9 months ago (2016-03-03 00:40:21 UTC) #11
nduca
oh i think the way this is hooked up is not how i expected this ...
4 years, 9 months ago (2016-03-03 00:43:26 UTC) #12
benjhayden
On 2016/03/03 at 00:43:26, nduca wrote: > oh i think the way this is hooked ...
4 years, 9 months ago (2016-03-04 18:34:33 UTC) #13
eakuefner
On 2016/03/04 at 18:34:33, benjhayden wrote: > On 2016/03/03 at 00:43:26, nduca wrote: > > ...
4 years, 9 months ago (2016-03-04 20:22:52 UTC) #14
nduca
This is all very exciting! Glad you two are talking. I think we're headed somewhere ...
4 years, 9 months ago (2016-03-04 22:05:24 UTC) #15
benjhayden
On 2016/03/04 at 22:05:24, nduca wrote: > This is all very exciting! Glad you two ...
4 years, 9 months ago (2016-03-04 22:21:22 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1730313007/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1730313007/140001
4 years, 9 months ago (2016-03-08 23:23:13 UTC) #18
benjhayden
PTAL
4 years, 9 months ago (2016-03-08 23:29:46 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 23:37:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1730313007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1730313007/160001
4 years, 9 months ago (2016-03-11 01:39:56 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 01:54:34 UTC) #29
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698