process_tree

package
v0.0.0-...-bf53ec1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	*os.Process
	Name       string
	Exe        string
	NumThreads int
	Cmdline    string
	Children   []*Process
}

Process is just a wrapper around `os.Process` to include children processes

type ProcessTree

type ProcessTree struct {
	MainProcess *Process
}

ProcessTree is the top-level for a process tree, containing a single `MainProcess` with its nested children

func LoadProcessTree

func LoadProcessTree(mainProcID int) (*ProcessTree, error)

LoadProcessTree will load the tree from the pid

func (*ProcessTree) FlattenedPids

func (p *ProcessTree) FlattenedPids() []int

Jump to

Keyboard shortcuts

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