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

Unified Diff: fuzzer/go/generator/afl_generation.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/aggregator/aggregator.go ('k') | go/buildbot/local_db.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzzer/go/generator/afl_generation.go
diff --git a/fuzzer/go/generator/afl_generation.go b/fuzzer/go/generator/afl_generation.go
index 9bb32964b3cdf0ef4f178a0da55debca793fd11b..1a118f195a759eb72a3872d33c6160316d3faede 100644
--- a/fuzzer/go/generator/afl_generation.go
+++ b/fuzzer/go/generator/afl_generation.go
@@ -66,7 +66,7 @@ func (g *Generator) Start() error {
fuzzCount = 4
}
- g.fuzzProcessCount = metrics2.NewCounter("afl-fuzz-process-count", map[string]string{"category": g.Category})
+ g.fuzzProcessCount = metrics2.GetCounter("afl-fuzz-process-count", map[string]string{"category": g.Category})
g.fuzzProcessCount.Inc(int64(fuzzCount))
for i := 1; i < fuzzCount; i++ {
fuzzerName := fmt.Sprintf("fuzzer%d", i)
« no previous file with comments | « fuzzer/go/aggregator/aggregator.go ('k') | go/buildbot/local_db.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698