diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-21 00:14:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-21 00:14:49 +0800 |
commit | 3b008723db3f89696dab53b311cbd2efc987a01f (patch) | |
tree | 810fb82f7fd5d107f68bb0fd8b4ba39b48d5cd58 /cmd | |
parent | c8e2b3710cec47f023fd01c42ea829579a2753be (diff) | |
download | dexon-3b008723db3f89696dab53b311cbd2efc987a01f.tar dexon-3b008723db3f89696dab53b311cbd2efc987a01f.tar.gz dexon-3b008723db3f89696dab53b311cbd2efc987a01f.tar.bz2 dexon-3b008723db3f89696dab53b311cbd2efc987a01f.tar.lz dexon-3b008723db3f89696dab53b311cbd2efc987a01f.tar.xz dexon-3b008723db3f89696dab53b311cbd2efc987a01f.tar.zst dexon-3b008723db3f89696dab53b311cbd2efc987a01f.zip |
cmd/geth, cmd/utils: invert --pprof once more
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/main.go | 4 | ||||
-rw-r--r-- | cmd/utils/flags.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 5695c4117..e213423ce 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -245,11 +245,11 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso utils.LogVModuleFlag, utils.LogFileFlag, utils.LogJSONFlag, - utils.PProfDisabledFlag, + utils.PProfEanbledFlag, utils.PProfPortFlag, } app.Before = func(ctx *cli.Context) error { - if !ctx.GlobalBool(utils.PProfDisabledFlag.Name) { + if ctx.GlobalBool(utils.PProfEanbledFlag.Name) { utils.StartPProf(ctx) } return nil diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 429007642..f81645e4e 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -157,9 +157,9 @@ var ( Usage: "When set to a file and line number holding a logging statement a stack trace will be written to the Info log", Value: glog.GetTraceLocation(), } - PProfDisabledFlag = cli.BoolFlag{ - Name: "nopprof", - Usage: "Whether the profiling server should be disabled", + PProfEanbledFlag = cli.BoolFlag{ + Name: "pprof", + Usage: "Whether the profiling server should be enabled", } PProfPortFlag = cli.IntFlag{ Name: "pprofport", |