add: pprof debug

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

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"`