add pprof support
This commit is contained in:
@@ -27,6 +27,7 @@ func main() {
|
||||
flag.TextVar(&level, "log-level", zapcore.InfoLevel, "logger level")
|
||||
flag.StringVar(&conf.MetricsBindAddress, "metrics-address", "127.0.0.1:8080", "The address the metric endpoint binds to.")
|
||||
flag.BoolVar(&conf.LeaderElection, "enable-leader-election", false, "Enable leader election for controller manager")
|
||||
flag.BoolVar(&conf.PProf, "enable-pprof", false, "Enable profile debug")
|
||||
flag.Parse()
|
||||
// 初始化日志格式
|
||||
ctrl.SetLogger(zap.New(func(o *zap.Options) {
|
||||
|
||||
Reference in New Issue
Block a user