sweet: delete unused isProfiling flag
Change-Id: I6c099b235062b4430d21e5d6242f44ce9657e989
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/600055
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Austin Clements <austin@google.com>
diff --git a/sweet/benchmarks/cockroachdb/main.go b/sweet/benchmarks/cockroachdb/main.go
index eaf93a7..173beae 100644
--- a/sweet/benchmarks/cockroachdb/main.go
+++ b/sweet/benchmarks/cockroachdb/main.go
@@ -41,7 +41,6 @@
cockroachdbBin string
tmpDir string
benchName string
- isProfiling bool
short bool
procsPerInst int
bench *benchmark
@@ -673,9 +672,6 @@
fmt.Fprintf(os.Stderr, "error: unexpected args\n")
os.Exit(1)
}
- for _, typ := range diagnostics.Types() {
- cliCfg.isProfiling = cliCfg.isProfiling || driver.DiagnosticEnabled(typ)
- }
for i := range benchmarks {
if benchmarks[i].name == cliCfg.benchName {
cliCfg.bench = &benchmarks[i]
diff --git a/sweet/benchmarks/etcd/main.go b/sweet/benchmarks/etcd/main.go
index f0dd3f1..755a459 100644
--- a/sweet/benchmarks/etcd/main.go
+++ b/sweet/benchmarks/etcd/main.go
@@ -42,7 +42,6 @@
benchmarkBin string
tmpDir string
benchName string
- isProfiling bool
short bool
procsPerInst int
gomaxprocs int
@@ -436,9 +435,6 @@
fmt.Fprintf(os.Stderr, "error: unexpected args\n")
os.Exit(1)
}
- for _, typ := range diagnostics.Types() {
- cliCfg.isProfiling = cliCfg.isProfiling || driver.DiagnosticEnabled(typ)
- }
for i := range benchmarks {
if benchmarks[i].name == cliCfg.benchName {
cliCfg.bench = &benchmarks[i]
diff --git a/sweet/benchmarks/tile38/main.go b/sweet/benchmarks/tile38/main.go
index 3719d75..6cc764d 100644
--- a/sweet/benchmarks/tile38/main.go
+++ b/sweet/benchmarks/tile38/main.go
@@ -38,7 +38,6 @@
tmpDir string
serverProcs int
gomaxprocs int
- isProfiling bool
short bool
}
@@ -358,9 +357,6 @@
fmt.Fprintf(os.Stderr, "error: unexpected args\n")
os.Exit(1)
}
- for _, typ := range diagnostics.Types() {
- cliCfg.isProfiling = cliCfg.isProfiling || driver.DiagnosticEnabled(typ)
- }
if err := run(&cliCfg); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)