good morning!!!!

Skip to content
Snippets Groups Projects
Commit 3b008723 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

cmd/geth, cmd/utils: invert --pprof once more

parent c8e2b371
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment