ps

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessInfo

type ProcessInfo struct {
	Name    string `json:"name"`
	Cwd     string `json:"cwd"`
	Cmdline string `json:"cmdlineArgs"`
	Exc     string `json:"exec"`
}

func GetProcessInfoByName

func GetProcessInfoByName(processCmdlineMatch string) ([]ProcessInfo, error)

根据进程匹配字符获取进程信息

func GetProcessInfoByPid

func GetProcessInfoByPid(pid int32) (ProcessInfo, error)

根据给定的进程号获取进程信息

Jump to

Keyboard shortcuts

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