proc

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var S = &Status{
	List: make(map[string]*Pinfo),
}

Functions

func GetPid

func GetPid(ppid string) int

GetPid 获取具体进程的PID

func ProcMem

func ProcMem(pid string) string

func ProcUse

func ProcUse(pid string) float64

func Proctime

func Proctime(pid string) (float64, float64)

Types

type Pinfo

type Pinfo struct {
	Pid       int
	CPid      int
	Status    bool
	Logsize   int
	Logfiles  int
	Alart     string
	Logapi    string
	Logserver string
	Topic     string
	WashMode  string
	Version   string
	Startup   string
	Dure      int
	Retry     int
}

type Status

type Status struct {
	List     map[string]*Pinfo
	ListLock sync.RWMutex
}

Jump to

Keyboard shortcuts

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