processKit

package
v3.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewManager
	NewManager func() *gproc.Manager = gproc.NewManager

	// NewProcess
	NewProcess func(path string, args []string, environment ...[]string) *gproc.Process = gproc.NewProcess

	// NewProcessCmd
	NewProcessCmd func(cmd string, environment ...[]string) *gproc.Process = gproc.NewProcessCmd
)
View Source
var GetRunningPids func() ([]int32, error) = process.Pids
View Source
var PID int = os.Getpid()
View Source
var PidExists func(pid int32) (bool, error) = process.PidExists

PidExists pid是否存在?

Functions

func GetProcessCount

func GetProcessCount() (int, error)

GetProcessCount 获取: (瞬时的值)系统中所有进程的数量.

支持: Linux、Mac

func GetProcessThreadCount

func GetProcessThreadCount() (int, error)

GetProcessThreadCount 获取: (瞬时的值)系统中所有进程及其线程的数量.

支持: Linux 不支持: Mac

Types

This section is empty.

Jump to

Keyboard shortcuts

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