sing-box/experimental/libbox/pprof_stub.go

22 lines
276 B
Go
Raw Normal View History

2022-10-25 04:55:00 +00:00
//go:build !debug
package libbox
import (
"os"
)
type PProfServer struct{}
func NewPProfServer(port int) *PProfServer {
return &PProfServer{}
}
func (s *PProfServer) Start() error {
return os.ErrInvalid
}
func (s *PProfServer) Close() error {
return os.ErrInvalid
}