proc

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessList

type ProcessList struct {
	Pid            int
	PPID           int
	NumThreads     int
	VirtualMemory  uint64
	ResidentMemory uint64
	CPUTime        float64
	State          string
	Command        string
	Executable     string
	Args           string
}

ProcessList contains all of the process stats we want to display via top

func List

func List() ([]ProcessList, error)

List processes the list of running processes and

func (*ProcessList) String

func (p *ProcessList) String() string

Jump to

Keyboard shortcuts

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