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

Unified Diff: go/buildbot/local_db.go

Issue 1722163002: Metrics2: Store a registry of Counters (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Address comments Created 4 years, 10 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
« no previous file with comments | « fuzzer/go/generator/afl_generation.go ('k') | go/httputils/http.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/buildbot/local_db.go
diff --git a/go/buildbot/local_db.go b/go/buildbot/local_db.go
index 0873dbb07ba67b6d89f433e8ce15fa1009980055..4d8adb46ce8cac5745e65116ea64b4611e961cfe 100644
--- a/go/buildbot/local_db.go
+++ b/go/buildbot/local_db.go
@@ -188,7 +188,7 @@ func NewLocalDB(filename string) (DB, error) {
}
db := &localDB{
db: d,
- txCount: metrics2.NewCounter("db-active-tx", map[string]string{
+ txCount: metrics2.GetCounter("db-active-tx", map[string]string{
"database": "buildbot",
}),
txNextId: 0,
« no previous file with comments | « fuzzer/go/generator/afl_generation.go ('k') | go/httputils/http.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698