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

Side by Side Diff: perf/server/src/config/config.go

Issue 382313002: Adds tile handler to the perf server (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = make(map[string]string)
jcgregorio 2014/07/11 19:03:55 HUMAN_READABLE_PARAM_NAMES = map[string]string{
kelvinly 2014/07/11 19:42:29 Done.
69 KEY_PARAM_ORDER = make(map[string][]string)
68 ) 70 )
71
72 func init() {
73 HUMAN_READABLE_PARAM_NAMES["builderName"] = "Builder name"
74 HUMAN_READABLE_PARAM_NAMES["rotate"] = "Rotate"
75 HUMAN_READABLE_PARAM_NAMES["system"] = "System type"
76 HUMAN_READABLE_PARAM_NAMES["clip"] = "Clip"
77 HUMAN_READABLE_PARAM_NAMES["gpuConfig"] = "GPU Configuration"
78 HUMAN_READABLE_PARAM_NAMES["os"] = "OS"
79 HUMAN_READABLE_PARAM_NAMES["role"] = "Buildbot role"
80 HUMAN_READABLE_PARAM_NAMES["testName"] = "Test name"
81 HUMAN_READABLE_PARAM_NAMES["antialias"] = "Antialiasing"
82 HUMAN_READABLE_PARAM_NAMES["model"] = "Buildbot model"
83 HUMAN_READABLE_PARAM_NAMES["measurementType"] = "Measurement type"
84 HUMAN_READABLE_PARAM_NAMES["arch"] = "CPU Architecture"
85 HUMAN_READABLE_PARAM_NAMES["dither"] = "Dither"
86 HUMAN_READABLE_PARAM_NAMES["mode"] = "Mode configuration"
87 HUMAN_READABLE_PARAM_NAMES["config"] = "Picture configuration" //?
88 HUMAN_READABLE_PARAM_NAMES["configuration"] = "Build configuration"
89 HUMAN_READABLE_PARAM_NAMES["skpSize"] = "Size of SKP"
90 HUMAN_READABLE_PARAM_NAMES["benchName"] = "SKP name"
91 HUMAN_READABLE_PARAM_NAMES["gpu"] = "GPU type"
92 HUMAN_READABLE_PARAM_NAMES["model"] = "GPU model" //?
93 HUMAN_READABLE_PARAM_NAMES["viewport"] = "Viewport size"
94 HUMAN_READABLE_PARAM_NAMES["scale"] = "Scale setting"
95 HUMAN_READABLE_PARAM_NAMES["bbh"] = "BBH setting"
96 // TODO: Order of params for keys
97 KEY_PARAM_ORDER[string(DATASET_SKP)] = []string{"builderName", "benchName", "config", "scale", "measurementType"}
98 KEY_PARAM_ORDER[string(DATASET_MICRO)] = []string{"builderName", "testName", "config", "scale", "measurementType"}
99 }
OLDNEW
« no previous file with comments | « no previous file | perf/server/src/filetilestore/filestore.go » ('j') | perf/server/src/server/perf.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698