add: pprof debug

This commit is contained in:
simonzhangsz committed 2024-05-14 15:19:13 +08:00
1 parent d782cfcc74
commit 439ade28e0
3 files changed
+21 -1

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ type YamlConfig struct {
Count int `yaml:"count"`
} `yaml:"logger"`
Pprof struct {
Enabled bool `yaml:"enabled"`
Addr string `yaml:"addr"`
} `yaml:"pprof"`
// Rest []struct {
// IPv4 string `yaml:"ipv4"`
// IPv6 string `yaml:"ipv6"`