ps

package
v16.9.10 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 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