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

Side by Side Diff: perf/go/trybot/trybot.go

Issue 608273002: Add versioning to perf SQL database (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Incorporating feedback 4 Created 6 years, 2 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
« no previous file with comments | « perf/go/skiaperf/main.go ('k') | perf/go/util/util.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** trybot is for loading and serving trybot performance results. 1 /** trybot is for loading and serving trybot performance results.
2 2
3 Implementation notes: 3 Implementation notes:
4 4
5 Regular files are in: 5 Regular files are in:
6 6
7 gs://chromium-skia-gm/nano-json-v1/2014/08/07/01/Perf-...-Release/nanobench_ da7a94...8d35a_1407357280.json 7 gs://chromium-skia-gm/nano-json-v1/2014/08/07/01/Perf-...-Release/nanobench_ da7a94...8d35a_1407357280.json
8 8
9 while trybots are in: 9 while trybots are in:
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 ResultsFileLocation *ingester.ResultsFileLocation 166 ResultsFileLocation *ingester.ResultsFileLocation
167 IssueName string 167 IssueName string
168 } 168 }
169 169
170 type BenchByIssueSlice []*BenchByIssue 170 type BenchByIssueSlice []*BenchByIssue
171 171
172 func (p BenchByIssueSlice) Len() int { return len(p) } 172 func (p BenchByIssueSlice) Len() int { return len(p) }
173 func (p BenchByIssueSlice) Less(i, j int) bool { return p[i].IssueName < p[j].Is sueName } 173 func (p BenchByIssueSlice) Less(i, j int) bool { return p[i].IssueName < p[j].Is sueName }
174 func (p BenchByIssueSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } 174 func (p BenchByIssueSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
175 175
176 func Init() { 176 func init() {
177 » db.Init()
178 var err error 177 var err error
179 st, err = storage.New(util.NewTimeoutClient()) 178 st, err = storage.New(util.NewTimeoutClient())
180 if err != nil { 179 if err != nil {
181 panic("Can't construct HTTP client") 180 panic("Can't construct HTTP client")
182 } 181 }
183 elapsedTimePerUpdate = metrics.NewRegisteredTimer("ingester.trybot.nano. update", metrics.DefaultRegistry) 182 elapsedTimePerUpdate = metrics.NewRegisteredTimer("ingester.trybot.nano. update", metrics.DefaultRegistry)
184 metricsProcessed = metrics.NewRegisteredCounter("ingester.trybot.nano.pr ocessed", metrics.DefaultRegistry) 183 metricsProcessed = metrics.NewRegisteredCounter("ingester.trybot.nano.pr ocessed", metrics.DefaultRegistry)
185 numSuccessUpdates = metrics.NewRegisteredCounter("ingester.trybot.nano.u pdates", metrics.DefaultRegistry) 184 numSuccessUpdates = metrics.NewRegisteredCounter("ingester.trybot.nano.u pdates", metrics.DefaultRegistry)
186 } 185 }
187 186
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 return fmt.Errorf("Update failed to write trybot results : %s", err) 229 return fmt.Errorf("Update failed to write trybot results : %s", err)
231 } 230 }
232 } 231 }
233 232
234 numSuccessUpdates.Inc(1) 233 numSuccessUpdates.Inc(1)
235 elapsedTimePerUpdate.UpdateSince(begin) 234 elapsedTimePerUpdate.UpdateSince(begin)
236 glog.Infof("Finished trybot ingestion.") 235 glog.Infof("Finished trybot ingestion.")
237 236
238 return nil 237 return nil
239 } 238 }
OLDNEW
« no previous file with comments | « perf/go/skiaperf/main.go ('k') | perf/go/util/util.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698