| 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 # HistogramSet JSON Format | 6 # HistogramSet JSON Format |
| 7 | 7 |
| 8 This document assumes familiarity with the concepts introduced in | 8 This document assumes familiarity with the concepts introduced in |
| 9 [how-to-write-metrics](/docs/how-to-write-metrics.md). | 9 [how-to-write-metrics](/docs/how-to-write-metrics.md). |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 }, | 49 }, |
| 50 }, | 50 }, |
| 51 { | 51 { |
| 52 "guid": "923e4567-e89b-12d3-a456-426655440000", | 52 "guid": "923e4567-e89b-12d3-a456-426655440000", |
| 53 "type": "TelemetryInfo", | 53 "type": "TelemetryInfo", |
| 54 "benchmarkName": "memory", | 54 "benchmarkName": "memory", |
| 55 "benchmarkStartMs": 1234567890, | 55 "benchmarkStartMs": 1234567890, |
| 56 "label": "abc", | 56 "label": "abc", |
| 57 "storyDisplayName": "my story", | 57 "storyDisplayName": "my story", |
| 58 "storyGroupingKeys": {"state": "pre"}, | 58 "storyGroupingKeys": {"state": "pre"}, |
| 59 "storyUrl": "http://example.com/", | |
| 60 "storysetRepeatCounter": 0, | 59 "storysetRepeatCounter": 0, |
| 61 }, | 60 }, |
| 62 ] | 61 ] |
| 63 ``` | 62 ``` |
| 64 | 63 |
| 65 ## Histograms | 64 ## Histograms |
| 66 | 65 |
| 67 ### Required fields | 66 ### Required fields |
| 68 | 67 |
| 69 * `name`: any string | 68 * `name`: any string |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 151 |
| 153 This tracks telemetry parameters when the Histogram was produced to allow users | 152 This tracks telemetry parameters when the Histogram was produced to allow users |
| 154 to compare or merge results across similar telemetry story runs. | 153 to compare or merge results across similar telemetry story runs. |
| 155 | 154 |
| 156 * `benchmarkName`: string | 155 * `benchmarkName`: string |
| 157 * `benchmarkStartMs`: number of ms since unix epoch | 156 * `benchmarkStartMs`: number of ms since unix epoch |
| 158 * `label`: string | 157 * `label`: string |
| 159 * `legacyTIRLabel`: string | 158 * `legacyTIRLabel`: string |
| 160 * `storyDisplayName`: string | 159 * `storyDisplayName`: string |
| 161 * `storyGroupingKeys`: dictionary mapping from strings to strings | 160 * `storyGroupingKeys`: dictionary mapping from strings to strings |
| 162 * `storyUrl`: string | |
| 163 * `storysetRepeatCounter`: number | 161 * `storysetRepeatCounter`: number |
| 164 | 162 |
| 165 ### RevisionInfo | 163 ### RevisionInfo |
| 166 | 164 |
| 167 This tracks revisions of the software under test to allow users to compare or | 165 This tracks revisions of the software under test to allow users to compare or |
| 168 merge results across revisions. | 166 merge results across revisions. |
| 169 | 167 |
| 170 * `chromiumCommitPosition`: optional integer | 168 * `chromiumCommitPosition`: optional integer |
| 171 * `v8CommitPosition`: optional integer | 169 * `v8CommitPosition`: optional integer |
| 172 * `chromium`: array of 1 or 2 strings | 170 * `chromium`: array of 1 or 2 strings |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 * `values`: dictionary mapping from custom string name to the related | 251 * `values`: dictionary mapping from custom string name to the related |
| 254 Histogram's string guid | 252 Histogram's string guid |
| 255 | 253 |
| 256 ### RelatedEventSet | 254 ### RelatedEventSet |
| 257 | 255 |
| 258 This allows metrics to explain the magnitude of a sample as a parameter of a | 256 This allows metrics to explain the magnitude of a sample as a parameter of a |
| 259 specific event or set of events in a trace. | 257 specific event or set of events in a trace. |
| 260 | 258 |
| 261 * `events`: array of dictionaries containing `stableId`, `title`, `start`, | 259 * `events`: array of dictionaries containing `stableId`, `title`, `start`, |
| 262 `duration` fields of Events | 260 `duration` fields of Events |
| OLD | NEW |