ps

package
v14.9.0-rc42 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comm

func Comm(pid int) (string, error)

Comm invokes ps -o comm= -p pid and returns its output

func Exec

func Exec(pid int, keywords string) (string, error)

Exec invokes ps -o keywords -p pid and returns its output

func RSS

func RSS(pid int) (int, error)

RSS returns the RSS of a process, in kB

Types

This section is empty.

Jump to

Keyboard shortcuts

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