pprof

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

func WithAddr

func WithAddr(addr string) Option

WithAddr 覆盖监听地址,默认 127.0.0.1:6060。 生产环境如需远程访问,建议通过 SSH 隧道而非直接对外暴露。

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server 是一个独立的 pprof HTTP 服务,实现 beauty.Service 接口。 默认只监听 loopback,避免意外暴露到公网。

func New

func New(opts ...Option) *Server

New 创建 pprof Server。通过 beauty.WithService(pprof.New()) 挂载到应用。

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) String

func (s *Server) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL