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

Unified Diff: perf/server/src/types/types.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 side-by-side diff with in-line comments
Download patch
« perf/server/src/server/perf.go ('K') | « perf/server/src/server/perf.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: perf/server/src/types/types.go
diff --git a/perf/server/src/types/types.go b/perf/server/src/types/types.go
index 5a8bc429c3e2042e8e0a82ec99c14ab981da82f6..a349310f8ab5c88d1287033c9c3d7c853d1dbbb2 100644
--- a/perf/server/src/types/types.go
+++ b/perf/server/src/types/types.go
@@ -86,6 +86,30 @@ func NewTile() *Tile {
}
}
+type TraceGUI struct {
jcgregorio 2014/07/11 19:03:56 Add doc comment on where this is used.
kelvinly 2014/07/11 19:42:30 Done.
+ Data [][2]float64 `json:"data_ui"`
jcgregorio 2014/07/11 19:03:56 Just "data" and "key" for the json should be fine.
kelvinly 2014/07/11 19:42:30 Done.
+ Key string `json:"key_ui"`
jcgregorio 2014/07/11 19:03:56 Run gofmt over all the code.
kelvinly 2014/07/11 19:42:30 Done.
+}
+
+type TileGUI struct {
jcgregorio 2014/07/11 19:03:56 Add doc comment on where this is used.
kelvinly 2014/07/11 19:42:30 Done.
+ Traces []TraceGUI `json:"traces,omitempty"`
+ ParamSet [][]string `json:"params,omitempty"`
+ Commits []*Commit `json:"commits,omitempty"`
+ NameList []string `json:"names,omitempty"`
+ Scale int `json:"scale"`
+ TileIndex int `json:"tileIndex"`
+}
+
+func NewGUITile(scale int, tileIndex int) *TileGUI {
+ return &TileGUI {
+ Traces: make([]TraceGUI, 0),
+ ParamSet: make([][]string, 0),
+ Commits: make([]*Commit, 0),
+ Scale: scale,
+ TileIndex: tileIndex,
+ }
+}
+
// TileStore is an interface representing the ability to save and restore Tiles.
type TileStore interface {
Put(scale, index int, tile *Tile) error
« perf/server/src/server/perf.go ('K') | « perf/server/src/server/perf.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698