kk_pprof

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureAllProfile

func CaptureAllProfile(dur time.Duration, appName string) error

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"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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