Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureProfile ¶
func CaptureProfile(pType ProfileType, dur time.Duration, appName string) error
func GetCpuUsage ¶
func GetCpuUsage()
func GetGoroutineCount ¶
func GetGoroutineCount()
func GetMemoryUsage ¶
func GetMemoryUsage()
Types ¶
type ConfigPprofWeb ¶
type ConfigPprofWeb struct { Port int EnableBlock bool //是否采集block信息 EnableMutex bool //是否采集mutex信息 }
func (*ConfigPprofWeb) Check ¶
func (c *ConfigPprofWeb) Check()
func (*ConfigPprofWeb) Close ¶
func (c *ConfigPprofWeb) Close()
func (*ConfigPprofWeb) Init ¶
func (c *ConfigPprofWeb) Init()
type ProfileType ¶
type ProfileType string
const ( Goroutine ProfileType = "goroutine" ThreadCreate ProfileType = "threadcreate" Heap ProfileType = "heap" Allocs ProfileType = "allocs" Block ProfileType = "block" Mutex ProfileType = "mutex" Cpu ProfileType = "cpu" )
Click to show internal directories.
Click to hide internal directories.