| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 package config | 5 package config |
| 6 | 6 |
| 7 import "time" | 7 import "time" |
| 8 | 8 |
| 9 // QuerySince holds the start time we have data since. | 9 // QuerySince holds the start time we have data since. |
| 10 // Don't consider data before this time. May be due to schema changes, etc. | 10 // Don't consider data before this time. May be due to schema changes, etc. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 const ( | 58 const ( |
| 59 DATASET_SKP DatasetName = "skps" | 59 DATASET_SKP DatasetName = "skps" |
| 60 DATASET_MICRO DatasetName = "micro" | 60 DATASET_MICRO DatasetName = "micro" |
| 61 ) | 61 ) |
| 62 | 62 |
| 63 var ( | 63 var ( |
| 64 ALL_DATASET_NAMES = []DatasetName{DATASET_SKP, DATASET_MICRO} | 64 ALL_DATASET_NAMES = []DatasetName{DATASET_SKP, DATASET_MICRO} |
| 65 | 65 |
| 66 // TODO(jcgregorio) Make into a flag. | 66 // TODO(jcgregorio) Make into a flag. |
| 67 » BEGINNING_OF_TIME = QuerySince(time.Date(2014, time.June, 18, 0, 0, 0, 0
, time.UTC)) | 67 » BEGINNING_OF_TIME = QuerySince(time.Date(2014, time.June, 18, 0
, 0, 0, 0, time.UTC)) |
| 68 » HUMAN_READABLE_PARAM_NAMES = map[string]string{ |
| 69 » » "antialias": "Antialiasing", |
| 70 » » "arch": "CPU Architecture", |
| 71 » » "bbh": "BBH Setting", |
| 72 » » "benchName": "SKP Name", |
| 73 » » "builderName": "Builder Name", |
| 74 » » "config": "Picture Configuration", |
| 75 » » "configuration": "Build Configuration", |
| 76 » » "clip": "Clip", |
| 77 » » "dither": "Dither", |
| 78 » » "gpu": "GPU Type", |
| 79 » » "gpuConfig": "GPU Configuration", |
| 80 » » "measurementType": "Measurement Type", |
| 81 » » "mode": "Mode Configuration", |
| 82 » » "model": "Buildbot Model", |
| 83 » » "os": "OS", |
| 84 » » "role": "Buildbot Role", |
| 85 » » "rotate": "Rotate", |
| 86 » » "scale": "Scale Setting", |
| 87 » » "skpSize": "SKP Size", |
| 88 » » "system": "System Type", |
| 89 » » "testName": "Test Name", |
| 90 » » "viewport": "Viewport Size", |
| 91 » } |
| 92 » KEY_PARAM_ORDER = map[string][]string{ |
| 93 » » string(DATASET_SKP): []string{"builderName", "benchName", "con
fig", "scale", "measurementType"}, |
| 94 » » string(DATASET_MICRO): []string{"builderName", "testName", "conf
ig", "scale", "measurementType"}, |
| 95 » } |
| 68 ) | 96 ) |
| OLD | NEW |