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

Unified Diff: perf/go/stats/stats.go

Issue 1411633008: perf: moving to tracebd (Closed) Base URL: https://skia.googlesource.com/buildbot@ts
Patch Set: rebase Created 5 years, 1 month 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
« no previous file with comments | « perf/go/skiaperf/main.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: perf/go/stats/stats.go
diff --git a/perf/go/stats/stats.go b/perf/go/stats/stats.go
index 124b704811c4b27c339940cb9995dbf5b83964f7..d21aed0ca33fa1ae6d5498bcf2ce9b7ba44a888d 100644
--- a/perf/go/stats/stats.go
+++ b/perf/go/stats/stats.go
@@ -6,25 +6,21 @@ import (
metrics "github.com/rcrowley/go-metrics"
"github.com/skia-dev/glog"
"go.skia.org/infra/go/gitinfo"
- "go.skia.org/infra/go/tiling"
+ "go.skia.org/infra/go/trace/db"
)
// Start calculating and reporting statistics on the repo and tiles.
//
// We presume the git.Update(true) is called somewhere else, usually this is done
// in the ingester, so the repo is always as good as the ingested tiles.
-func Start(tileStore tiling.TileStore, git *gitinfo.GitInfo) {
+func Start(nanoTileStore *db.Builder, git *gitinfo.GitInfo) {
coverage := metrics.NewRegisteredGaugeFloat64("stats.tests.bench_runs_per_changelist", metrics.DefaultRegistry)
skpLatency := metrics.NewRegisteredTimer("stats.skp.update_latency", metrics.DefaultRegistry)
commits := metrics.NewRegisteredGauge("stats.commits.total", metrics.DefaultRegistry)
go func() {
for _ = range time.Tick(2 * time.Minute) {
- tile, err := tileStore.Get(0, -1)
- if err != nil {
- glog.Warning("Failed to get tile: %s", err)
- continue
- }
+ tile := nanoTileStore.GetTile()
numCommits := tile.LastCommitIndex() + 1
numTraces := len(tile.Traces)
total := 0
« no previous file with comments | « perf/go/skiaperf/main.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698