OLD | NEW |
---|---|
1 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 1 <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
3 found in the LICENSE file. | 3 found in the LICENSE file. |
4 --> | 4 --> |
5 | 5 |
6 # How to Write Metrics | 6 # How to Write Metrics |
7 | 7 |
8 Timeline-Based Measurement v2 is a system for computing metrics from traces. | 8 Timeline-Based Measurement v2 is a system for computing metrics from traces. |
9 | 9 |
10 A TBM2 metric is a Javascript function that takes a trace Model and produces | 10 A TBM2 metric is a Javascript function that takes a trace Model and produces |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
181 * [TelemetryInfo](/tracing/tracing/value/diagnostics/telemetry_info.html): | 181 * [TelemetryInfo](/tracing/tracing/value/diagnostics/telemetry_info.html): |
182 This is automatically attached to every Histogram produced by telemetry. | 182 This is automatically attached to every Histogram produced by telemetry. |
183 Structurally, it's a class with explicit named fields. | 183 Structurally, it's a class with explicit named fields. |
184 Conceptually, it contains information about the origins of the trace that was | 184 Conceptually, it contains information about the origins of the trace that was |
185 consumed by the metric that produced the Histogram, such as the benchmark | 185 consumed by the metric that produced the Histogram, such as the benchmark |
186 name, story name, benchmark start timestamp, etc. | 186 name, story name, benchmark start timestamp, etc. |
187 Visually, TelemetryInfos are displayed as a table. | 187 Visually, TelemetryInfos are displayed as a table. |
188 | 188 |
189  | 189  |
190 | 190 |
191 * [DeviceInfo](/tracing/tracing/value/diagnostics/device_info.html): | |
192 This is automatically attached to every Histogram produced by buildbots. | |
193 Structurally, it's a class with explicit named fields. Conceptually, it | |
194 contains information about the machine that produced the trace that was | |
195 consumed by the metric that produced the Histogram, such as the OS version, | |
196 Chrome version, etc. Visually, DeviceInfos are displayed as a table. | |
197 | |
198  | |
benjhayden
2017/07/26 05:24:13
Can you git rm this image file as well?
| |
199 | |
200 * [RevisionInfo](/tracing/tracing/value/diagnostics/revision_info.html): | 191 * [RevisionInfo](/tracing/tracing/value/diagnostics/revision_info.html): |
201 This is automatically attached to every Histogram produced by telemetry. | 192 This is automatically attached to every Histogram produced by telemetry. |
202 Structurally, it's a class with explicit named fields. Conceptually, it | 193 Structurally, it's a class with explicit named fields. Conceptually, it |
203 contains ranges of revisions of the software used to produce the trace that | 194 contains ranges of revisions of the software used to produce the trace that |
204 was consumed by the metric that produced the Histogram, such as the Chromium | 195 was consumed by the metric that produced the Histogram, such as the Chromium |
205 revision, v8 revision, and catapult revision. Visually, RevisionInfos are | 196 revision, v8 revision, and catapult revision. Visually, RevisionInfos are |
206 displayed as a table. | 197 displayed as a table. |
207 | 198 |
208  | 199  |
209 | 200 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 * Instead of having one category for all story grouping keys, each grouping | 265 * Instead of having one category for all story grouping keys, each grouping |
275 individual grouping key may be listed as a category. For example, in Page | 266 individual grouping key may be listed as a category. For example, in Page |
276 Cycler v2 benchmarks, the "cache_temperature" grouping key would be | 267 Cycler v2 benchmarks, the "cache_temperature" grouping key would be |
277 displayed as a category. | 268 displayed as a category. |
278 * Choosing groups builds a hierarchy of histograms that is filled in by merging | 269 * Choosing groups builds a hierarchy of histograms that is filled in by merging |
279 histograms from the bottom up. Expanding the rows of histogram-set-table, any | 270 histograms from the bottom up. Expanding the rows of histogram-set-table, any |
280 leaf nodes are histograms that were loaded, and their ancestors are computed b y | 271 leaf nodes are histograms that were loaded, and their ancestors are computed b y |
281 merging. | 272 merging. |
282 * histogram-set-table uses the "label" property of TelemetryInfo to define the | 273 * histogram-set-table uses the "label" property of TelemetryInfo to define the |
283 columns of the table. | 274 columns of the table. |
OLD | NEW |