Chromium Code Reviews| 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 |