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
Click to show internal directories.
Click to hide internal directories.