|
Define DiagnosticMap and a basic Diagnostic hierarchy.
Currently, Value.diagnostics is a free-form dictionary.
Metrics can add anything they want to it!
The problem is that metrics don't know what to add to it.
This CL defines a simple hierarchy of strongly-typed Diagnostics
(Generic, RelatedValueSet, Composition),
with nice APIs like DiagnosticMap and RelatedValueSet.
Each subtype of Diagnostic is defined and registered in its own file,
so anybody can define and register a new kind of Diagnostic.
A followup CL will define a diagnostic-map-view and a registry of diagnostic views
for the different types of Diagnostics.
https://docs.google.com/document/d/1F7A0WRVC-aYHSz_rDnEBzDpjEDJl0_1Kjb9IKrpAhok/edit
In order to support the new RelatedValueSet and Composition diagnostics,
placeholder ValueRef objects are resolved into Values using ValueSet
after all Values are imported from dicts,
so that individual Values can be imported without their entire ValueSet.
The canonical_url diagnostic is unused, so this CL removes it.
Grouping keys are removed from Values as a first step towards refactoring them
into diagnostics, since this CL already significantly changes the Value API.
A followup CL will refactor Value's opt_options and remove 'important'.
The only metric that made extensive use of diagnostics was hazardMetric, which is
being refactored to not use diagnostics anyway:
https://codereview.chromium.org/1992303003
BUG=catapult:#2180
Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/1fe25d215145ad371fecf08378aada9730086495
Total comments: 2
Total comments: 29
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+572 lines, -368 lines) |
Patch |
 |
M |
telemetry/telemetry/internal/results/html2_output_formatter.py
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/value/common_value_helpers.py
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
telemetry/telemetry/value/common_value_helpers_unittest.py
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tracing/trace_viewer.gypi
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/metric_map_function_test.html
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/metric_registry_test.html
|
View
|
1
2
|
3 chunks |
+6 lines, -12 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/sample_metric.html
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/efficiency_metric.html
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+2 lines, -12 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/first_paint_metric.html
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/hazard_metric.html
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -27 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/hazard_metric_test.html
|
View
|
1
2
3
4
|
3 chunks |
+0 lines, -20 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/memory_metric.html
|
View
|
1
2
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/memory_metric_test.html
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/power_metric.html
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/power_metric_test.html
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/system_health/responsiveness_metric.html
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/tracing_metric.html
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+20 lines, -21 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/v8/execution_metric.html
|
View
|
1
2
|
8 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/v8/gc_metric.html
|
View
|
1
2
|
5 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/v8/gc_metric_test.html
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/value_set.html
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+31 lines, -6 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/metrics/value_set_test.html
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+61 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/ui/analysis/single_user_expectation_sub_view.html
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -37 lines |
0 comments
|
Download
|
 |
A |
tracing/tracing/value/diagnostics/composition.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tracing/tracing/value/diagnostics/diagnostic.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tracing/tracing/value/diagnostics/diagnostic_map.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tracing/tracing/value/diagnostics/generic.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tracing/tracing/value/diagnostics/related_value_set.html
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/value/value.html
|
View
|
1
2
3
4
5
6
7
8
|
13 chunks |
+53 lines, -97 lines |
0 comments
|
Download
|
 |
M |
tracing/tracing/value/value_test.html
|
View
|
1
2
3
4
5
6
|
4 chunks |
+26 lines, -63 lines |
0 comments
|
Download
|
Total messages: 39 (23 generated)
|