cmd/geth, cmd/utils: use pprof disable flag, start globally
This commit is contained in:
		@@ -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(),
 | 
			
		||||
	}
 | 
			
		||||
	PProfEnabledFlag = cli.BoolFlag{
 | 
			
		||||
		Name:  "pprof",
 | 
			
		||||
		Usage: "Whether the profiling server is enabled",
 | 
			
		||||
	PProfDisabledFlag = cli.BoolFlag{
 | 
			
		||||
		Name:  "nopprof",
 | 
			
		||||
		Usage: "Whether the profiling server should be disabled",
 | 
			
		||||
	}
 | 
			
		||||
	PProfPortFlag = cli.IntFlag{
 | 
			
		||||
		Name:  "pprofport",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user