Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultPort is the default port for the pprof HTTP server.
DefaultPort = 6060
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Port uint16 `env:"PORT" json:"port" yaml:"port"`
EnableMutexProfile bool `env:"ENABLE_MUTEX_PROFILE" json:"enableMutexProfile" yaml:"enableMutexProfile"`
EnableBlockProfile bool `env:"ENABLE_BLOCK_PROFILE" json:"enableBlockProfile" yaml:"enableBlockProfile"`
}
Config holds pprof-specific profiling configuration.
Click to show internal directories.
Click to hide internal directories.