ps

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 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