ps

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SC_CLK_TCK int64 = 100 // C.sysconf(C._SC_CLK_TCK)

Variables

This section is empty.

Functions

func GetCmdline

func GetCmdline(pid int) ([]string, error)

GetCmdline returns the command line arguments of the process with the specified pid as a slice.

func GetCreateTime

func GetCreateTime(pid int) (*time.Time, error)

GetCreatedTime returns the creation time of the specified pid in seconds.

func GetLifeTime

func GetLifeTime(pid int) (time.Duration, error)

GetLifeTime returns the life time of the specified pid in seconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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