Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrServerDoneBeforeReady = errors.New("server terminated before being ready")
Functions ¶
func NewServer ¶
func NewServer(address string, logger Logger, options ...httpserver.Option) *httpserver.Server
NewServer creates a new Pprof server which will listen at the address specified.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a pprof http server service compatible with the dot/service.go interface.
func NewService ¶
func NewService(config cfg.PprofConfig, logger Logger) *Service
NewService creates a pprof server service compatible with the dot/service.go interface.
type Settings ¶
type Settings struct { // ListeningAddress is the HTTP pprof server // listening address. ListeningAddress string // See runtime.SetBlockProfileRate // Set to 0 to disable profiling. BlockProfileRate int // See runtime.SetMutexProfileFraction // Set to 0 to disable profiling. MutexProfileRate int }
Settings are the settings for the Pprof service.
Click to show internal directories.
Click to hide internal directories.