profiler

package
v1.6.65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_CMD_PROFILER_ON = iota
	CONFIG_CMD_PROFILER_OFF
	CONFIG_CMD_PROFILER_STATUS
)

Variables

This section is empty.

Functions

func RegisterProfilerCommand

func RegisterProfilerCommand() *cobra.Command

Types

type ProfilerServer

type ProfilerServer struct {
	http.Server
	// contains filtered or unexported fields
}

func NewProfiler

func NewProfiler(port int) *ProfilerServer

func (*ProfilerServer) CheckAndStart

func (s *ProfilerServer) CheckAndStart()

func (*ProfilerServer) RecvCommand

func (s *ProfilerServer) RecvCommand(conn *net.UDPConn, remote *net.UDPAddr, operate uint16, args *bytes.Buffer)

func (*ProfilerServer) Start

func (s *ProfilerServer) Start()

func (*ProfilerServer) Stop

func (s *ProfilerServer) Stop()

Jump to

Keyboard shortcuts

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