profiling

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Addr the address for starting profiling server
	Addr = ""
)

Functions

func AddFlags

func AddFlags(fs *pflag.FlagSet)

AddFlags .

func NewProfilingHandler

func NewProfilingHandler() http.Handler

NewProfilingHandler create a profiling handler

func StartProfilingServer

func StartProfilingServer(errChan chan error)

StartProfilingServer listen to the pprofAddr and export the profiling results If the errChan is nil, this function will panic when the listening error occurred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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