mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
cmd/geth, cmd/utils: invert --pprof once more
This commit is contained in:
parent
c8e2b3710c
commit
3b008723db
@ -245,11 +245,11 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso
|
|||||||
utils.LogVModuleFlag,
|
utils.LogVModuleFlag,
|
||||||
utils.LogFileFlag,
|
utils.LogFileFlag,
|
||||||
utils.LogJSONFlag,
|
utils.LogJSONFlag,
|
||||||
utils.PProfDisabledFlag,
|
utils.PProfEanbledFlag,
|
||||||
utils.PProfPortFlag,
|
utils.PProfPortFlag,
|
||||||
}
|
}
|
||||||
app.Before = func(ctx *cli.Context) error {
|
app.Before = func(ctx *cli.Context) error {
|
||||||
if !ctx.GlobalBool(utils.PProfDisabledFlag.Name) {
|
if ctx.GlobalBool(utils.PProfEanbledFlag.Name) {
|
||||||
utils.StartPProf(ctx)
|
utils.StartPProf(ctx)
|
||||||
}
|
}
|
||||||
return nil
|
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",
|
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(),
|
Value: glog.GetTraceLocation(),
|
||||||
}
|
}
|
||||||
PProfDisabledFlag = cli.BoolFlag{
|
PProfEanbledFlag = cli.BoolFlag{
|
||||||
Name: "nopprof",
|
Name: "pprof",
|
||||||
Usage: "Whether the profiling server should be disabled",
|
Usage: "Whether the profiling server should be enabled",
|
||||||
}
|
}
|
||||||
PProfPortFlag = cli.IntFlag{
|
PProfPortFlag = cli.IntFlag{
|
||||||
Name: "pprofport",
|
Name: "pprofport",
|
||||||
|
Loading…
Reference in New Issue
Block a user