tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NotSupportProfilingExe mean which program are not support for profiling
	// Not Support JIT and Script language for now
	NotSupportProfilingExe = []string{
		"java", "python", "node", "bash", "ruby", "ssh",
	}
)

Functions

func DefaultHostIPAddress

func DefaultHostIPAddress() string

DefaultHostIPAddress IP address of machine

func HostIPAddressV4

func HostIPAddressV4(name string) string

HostIPAddressV4 found the IPV4 address from appoint net interface name

func HostIPAddressV6

func HostIPAddressV6(name string) string

HostIPAddressV6 found the IPV6 address from appoint net interface name

func Hostname

func Hostname() string

Hostname of machine

func KernelFileProfilingStat

func KernelFileProfilingStat() (*profiling.Info, error)

KernelFileProfilingStat is works for read the kernel and get is support for kernel symbol analyze

func ProcessProfilingStat

func ProcessProfilingStat(pid int32, exePath string) (*profiling.Info, error)

ProcessProfilingStat is validating the exe file could be profiling and get info

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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